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 in Java 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 (Graphic User Interfaces). 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

available on the web at:

http://mindprod.com/jgloss/desktop.html
  

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\desktop.html
logo
Please email your , 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, your name or email kept confidential, not considered for public posting, please explicitly specify that. Unless you state otherwise, I will treat your message as a letter to the editor that I may or may not publish in the feedback section. After that, it will be too late to retract it. If you disagree with something I said, especially when sending an ad-hominem attack, a rant composed mainly of obscenities or a death threat, please quote the offending passage and cite the web page where you found it, tell me why you think it is wrong, and, if possible, provide some supporting evidence. I can’t very well fix erroneous or ambiguous text if I can’t find it.
Blog
IP:[65.110.21.43]
Your face IP:[50.16.36.153]
You are visitor number 11.