com.threerings.util
Class BrowserUtil
java.lang.Object
com.threerings.util.BrowserUtil
public class BrowserUtil
- extends Object
Encapsulates a bunch of hackery needed to invoke an external web browser
from within a Java application.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BrowserUtil
public BrowserUtil()
browseURL
public static void browseURL(URL url,
ResultListener<Void> listener)
- Opens the user's web browser with the specified URL.
- Parameters:
url - the URL to display in an external browser.listener - a listener to be notified if we failed to launch the
browser. Note: it will not be notified of success.
browseURL
public static void browseURL(URL url,
ResultListener<Void> listener,
String genagent)
- Opens the user's web browser with the specified URL.
- Parameters:
url - the URL to display in an external browser.listener - a listener to be notified if we failed to launch the
browser. Note: it will not be notified of success.genagent - the path to the browser to execute on non-Windows,
non-MacOS.