org.switchboard.browser
Class BrowserControl
java.lang.Object
org.switchboard.browser.BrowserControl
public class BrowserControl
- extends Object
|
Method Summary |
static void |
displayURL(String url)
Display a file in the system browser. |
static boolean |
isWindowsPlatform()
Try to determine whether this application is running under Windows or
some other platform by examing the "os.name" property. |
static void |
main(String[] args)
Simple example. |
BrowserControl
public BrowserControl()
displayURL
public static void displayURL(String url)
- Display a file in the system browser. If you want to display a file, you
must include the absolute path name.
- Parameters:
url - the file's url (the url must start with either "http://" or
"file://").
isWindowsPlatform
public static boolean isWindowsPlatform()
- Try to determine whether this application is running under Windows or
some other platform by examing the "os.name" property.
- Returns:
- true if this application is running under a Windows OS
main
public static void main(String[] args)
- Simple example.