|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jwo.utils.JWBrowser
Displays a given URL in the system browser. Under UNIX, the system browser is hard-coded to be Netscape which must be in the users PATH to work. Under Windows, the system default browser is used.
Constructor Summary | |
JWBrowser()
|
Method Summary | |
static boolean |
displayFile(String file)
Displays a given file using the default application. |
static boolean |
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)
Displays the given file in the system's default browser. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JWBrowser()
Method Detail |
public static void main(String[] args)
args
- Command line arguments.public static boolean displayFile(String file)
file
- Name of file to display.
public static boolean displayURL(String url)
url
- the file's url (the url must start with either "http://" or
"file://").public static boolean isWindowsPlatform()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |