desktop module

This module provides functions that display local and remote documents, which are referenced by a File or a URL object. On windows and Mac OS X, the default editor/browser of the system is used. On other platforms, Swing API is used to display documents.

showLocalFile(file)

Opens a window that displays the content of the specified local file.

showLocalFile("c:\\")
showURL(url)

Opens a window that displays the content of the specified URL.

showURL("http://java.sun.com/")