public class UrlDisplayHelper extends Object
created on: 25.04.2013
| Constructor and Description |
|---|
UrlDisplayHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
displayUrl(Component parent,
String url)
Display given
url in the default browser. |
static void |
displayUrl(Component parent,
URL url)
Convenience method to display an url.
|
static boolean |
displayUrlIsSupported()
Returns
true if the platform supports displaying of urls. |
public static boolean displayUrlIsSupported()
true if the platform supports displaying of urls.true if displaying of urls is supportedpublic static void displayUrl(Component parent, String url)
url in the default browser. If this action is not supported
a message dialog with an error message is displayed.parent - parent for error message dialogurl - url to be displayedpublic static void displayUrl(Component parent, URL url)
parent - component to display inurl - URL to displaydisplayUrl(Component, String)Copyright © 2019. All rights reserved.