Documentation of 'tig.BrowserControl' Java class
BrowserControl
tig

Class BrowserControl



  • public class BrowserControl
    extends java.lang.Object
    A simple, static class to display a URL in the system browser.

    By Steven Spencer, found at http://www.javaworld.com/javaworld/javatips/f_jw-javatip66.html.

  • Under Unix, the system browser is hard-coded to be 'netscape'. Netscape must be in your PATH for this to work. This has been tested with the following platforms: AIX, HP-UX and Solaris.
  • Under Windows, this will bring up the default browser, usually either Netscape or Microsoft IE. The default browser is determined by the OS. This has been tested under Windows 95/98/NT.

    Examples :
    BrowserControl.displayURL("http://www.javaworld.com") BrowserControl.displayURL("file://c:\\docs\\index.html") BrowserContorl.displayURL("file:///user/joe/index.html");

    Note - you must include the url type -- either "http://" or "file://".
Skip navigation links

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.