Desktop : Java Glossary

go to home page D words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all) ©1996-2009 2008-04-03 Roedy Green, Canadian Mind Products
Desktop
The word desktop refers to the main screen display with icons littered over it, and sometimes to whatever you have currently visible. Oddly, Desktop also refers to a class, introduced in JDK 1.6, that lets you launch generic applications. Surprisingly, Desktop is part of the venerable java.awt package. This was a stupid place to put it. Launching apps has nothing to do with GUIs. I think Sun should have given it a more descriptive name like Launch. I can’t see the Desktop class having the remotest connection with the desktop.

With either a File or URI, it lets you launch a viewer to display the file, e.g. a browser, email client, The Desktop class allows a Java application to launch associated applications registered on the native desktop to handle a URI or a file. or a the associated open, edit or print application.

Unlike exec, you can use these features without knowing the name of the local command processor, browser, mail program etc.

Learning More

Sun’s Javadoc on java.awt.Desktop class : available:

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/desktop.html J:\mindprod\jgloss\desktop.html
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.191.101]
You are visitor number 11.