public class BrowserLauncher extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
browsers
List of potential browsers on systems without a default mechanism.
|
| Constructor and Description |
|---|
BrowserLauncher() |
| Modifier and Type | Method and Description |
|---|---|
static void |
open(String url)
Opens the specified web page in the user's default browser.
|
public static final String[] browsers
public static void open(String url) throws Exception
url - the URL of the page to be openedException - if an error occurred attempting to launch the browser.
If the browser is successfully started but later fails for
some reason, no exception will be thrown.Copyright © 2002–2019 Starter Inc.. All rights reserved.