7980818283848586
private void launchWebPage() { String text = textField.getText().trim(); if (text.length() == 0) { return; } WebBrowser browser = getBrowser(); browser.open(text); }
5859606162636465666768
}); } private void openBrowser() { try { WebBrowser browser = WebBrowserFactory.newInstance().createBrowser(); browser.open(ApplicationConfiguration.getSupportUrl()); } catch (UnsupportedPlatformException ex) { ex.printStackTrace(); } }
3334353637383940414243
} @Override public void hyperlinkUpdate(HyperlinkEvent e) { if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) { WebBrowser browser = getBrowser(); if (browser != null) { browser.open(e.getURL().toString()); } } }
45464748495051525354
private void executeImpl() { WebBrowserFactory browserFactory = getBrowserFactory(); if (browserFactory != null) { WebPage page = getWebPage(); if (page != null) { WebBrowser browser = browserFactory.createBrowser(); browser.open(page); } } }
212213214215216217218219220
} private void openUrl(String url) { WebBrowserFactory f = getBrowserFactory(); if (f != null) { WebBrowser b = f.createBrowser(); b.open(url); } }