Home » openjdk-7 » java » awt » peer » [javadoc | source]
java.awt.peer
public interface: DesktopPeer [javadoc | source] The {@code DesktopPeer} interface provides methods for the operation of open, edit, print, browse and mail with the given URL or file, by launching the associated application.

Each platform has an implementation class for this interface.
Method from java.awt.peer.DesktopPeer Summary:
browse,   edit,   isSupported,   mail,   open,   print
Method from java.awt.peer.DesktopPeer Detail:
 public  void browse(URI url) throws IOException
    Launches the user default browser to display the given URI.
 public  void edit(File file) throws IOException
    Launches the associated editor and opens the given file for editing. The associated editor is registered to be the default editor for the file type of the given file.
 public boolean isSupported(Action action)
    Returns whether the given action is supported on the current platform.
 public  void mail(URI mailtoURL) throws IOException
    Launches the mail composing window of the user default mail client, filling the message fields including to, cc, etc, with the values specified by the given mailto URL.
 public  void open(File file) throws IOException
    Launches the associated application to open the given file. The associated application is registered to be the default file viewer for the file type of the given file.
 public  void print(File file) throws IOException
    Prints the given file with the native desktop printing facility, using the associated application's print command.