Package weka.gui
Class BrowserHelper
java.lang.Object
weka.gui.BrowserHelper
A little helper class for browser related stuff.
The
openURL method is based on Bare Bones
Browser Launch, which is placed in the public domain.- Version:
- $Revision: 12296 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JLabelcreateLink(String url, String text) Generates a label with a clickable link.static voidopens the URL in a browser.static voidopens the URL in a browser.static voidopens the URL in a browser.
-
Field Details
-
LINUX_BROWSERS
Linux/Unix binaries to look for
-
-
Constructor Details
-
BrowserHelper
public BrowserHelper()
-
-
Method Details
-
openURL
opens the URL in a browser.- Parameters:
url- the URL to open
-
openURL
opens the URL in a browser.- Parameters:
parent- the parent componenturl- the URL to open
-
openURL
opens the URL in a browser.- Parameters:
parent- the parent componenturl- the URL to openshowDialog- whether to display a dialog in case of an error or just print the error to the console
-
createLink
Generates a label with a clickable link.- Parameters:
url- the url of the linktext- the text to display instead of URL. if null or of length 0 then the URL is used- Returns:
- the generated label
-