- java.lang.Object
-
- org.icepdf.ri.util.BareBonesBrowserLaunch
-
public class BareBonesBrowserLaunch extends Object
Bare Bones Browser Launch for Java
Utility class to open a web page from a Swing application in the user's default browser.
Supports: Mac OS X, GNU/Linux, Unix, Windows XP
Example Usage:Latest Version: http://www.centerkey.com/java/browser
String url = "http://www.google.com/";
BareBonesBrowserLaunch.openURL(url);
Author: Dem Pilafian
Public Domain Software -- Free to Use as You Like- Version:
- 1.5, December 10, 2005
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_PREFIX
-
Constructor Summary
Constructors Constructor Description BareBonesBrowserLaunch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisMac()static booleanisUnix()static booleanisWindows()static voidopenFile(String filePath)Opens the specified file path using the OS's preferred application bindingstatic voidopenURL(String url)Opens the specified web page in a web browser
-
-
-
Field Detail
-
FILE_PREFIX
public static final String FILE_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
openURL
public static void openURL(String url)
Opens the specified web page in a web browser- Parameters:
url- An absolute URL of a web page (ex: "http://www.google.com/")
-
openFile
public static void openFile(String filePath)
Opens the specified file path using the OS's preferred application binding- Parameters:
filePath- to open on host OS.
-
isWindows
public static boolean isWindows()
-
isMac
public static boolean isMac()
-
isUnix
public static boolean isUnix()
-
-