Package util
Class BareBonesBrowserLaunch
- java.lang.Object
-
- 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: macOS, Linux, Unix, Windows
Example Usage:Latest Version: centerkey.com/java/browser
String url = "https://www.google.com/";
BareBonesBrowserLaunch.openURL(url);
Author: Dem Pilafian
WTFPL -- Free to use as you like- Version:
- 3.2, October 24, 2010
-
-
Constructor Summary
Constructors Constructor Description BareBonesBrowserLaunch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidopenURL(String url)Opens the specified web page in the user's default browser
-
-
-
Method Detail
-
openURL
public static void openURL(String url) throws Exception
Opens the specified web page in the user's default browser- Parameters:
url- A web address (URL) of a web page (ex: "https://www.google.com/")- Throws:
ClassNotFoundExceptionSecurityExceptionNoSuchMethodExceptionInvocationTargetExceptionIllegalArgumentExceptionException
-
-