API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt. Desktop View Source
Author(s)
Armin Chen
George Zhang
Since
1.6
Version
Serial
Hierarchy
 Object
      Desktop
Implements
Subclasses
Description
public class Desktop
  The Desktop class allows a Java application to launch associated applications registered on the native desktop to handle a URI or a file.
See also:   
Constructors
private Desktop ()
Suppresses default constructor for noninstantiability.
Methods
Hide/Show inherited methods
public void browse (URI uri) throws IOException
  Launches the default browser to display a URI.
public void edit (File file) throws IOException
  Launches the associated editor application and opens a file for editing.
publicstaticsynchronized Desktop getDesktop ()
  Returns the Desktop instance of the current browser context.
publicstatic boolean isDesktopSupported ()
  Tests whether this class is supported on the current platform.
public boolean isSupported (Action action)
  Tests whether an action is supported on the current platform.
public void mail () throws IOException
  Launches the mail composing window of the user default mail client.
public void mail (URI mailtoURI) throws IOException
  Launches the mail composing window of the user default mail client, filling the message fields specified by a mailto: URI.
public void open (File file) throws IOException
  Launches the associated application to open the file.
public void print (File file) throws IOException
  Prints a file with the native desktop printing facility, using the associated application's print command.
Fields
Hide/Show inherited fields
Nested Classes
  Desktop.Action
Represents an action type.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar