|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.centerkey.utils.BareBonesBrowserLaunch
public final class BareBonesBrowserLaunch
Utility class to open a web page from a Swing application in the user's default browser. On JDK
1.6+ it uses java.awt.Desktop.getDesktop().browse(), on earlier versions it
provides fall backs for Mac OS X, GNU/Linux, Unix, Windows XP/Vista/7.
Example usage:BareBonesBrowserLaunch.openURL("http://example.com/");
Latest version: http://www.centerkey.com/java/browser .
Public Domain Software -- Free to Use as You Like.
| Method Summary | |
|---|---|
static void |
openURL(java.lang.String url)
Open url in the user's default browser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void openURL(java.lang.String url)
throws java.io.IOException
url in the user's default browser.
url - URL to open, for instance "http://example.com/".
java.io.IOException - in case the browser cannot be opened
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||