Example usage for Java java.awt Desktop fields, constructors, methods, implement or subclass
The text is from its open source code.
Desktop() Suppresses default constructor for noninstantiability. |
void | browse(URI uri) Launches the default browser to display a URI . |
void | edit(File file) Launches the associated editor application and opens a file for editing. |
Desktop | getDesktop() Returns the Desktop instance of the current desktop context. |
boolean | isDesktopSupported() Tests whether this class is supported on the current platform. |
boolean | isSupported(Action action) Tests whether an action is supported on the current platform. |
void | mail() Launches the mail composing window of the user default mail client. |
void | mail(URI mailtoURI) Launches the mail composing window of the user default mail client, filling the message fields specified by a mailto: URI. |
void | open(File file) Launches the associated application to open the file. |
void | print(File file) Prints a file with the native desktop printing facility, using the associated application's print command. |