Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Desktop.getDesktop() method in java .

 
tushar pandey
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i open this method definition in Java , There is a text Returns the Desktop instance of the current browser context , is it means that it deals with browser , IE or CHROME or it means , .mp3 is supported by windows media player .
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that's incorrect phrasing in the javadocs; it should probably read something like "Returns the Desktop instance of the current context." The Desktop class is tied to the AWT context, not to any browser - it is generally used in desktop apps (as opposed to server-based apps, where the functionality it provides isn't useful).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic