Desktop : Java Glossary

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 inJava version 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 (Uniform Resource Indicator) , 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.

Launching A Browser

Learning More

Oracle’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
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
view BlogYour face IP:[38.107.179.211]
You are visitor number 11.