@Action public void showContestWebSite() { stopCountdown(); try { Browser.openUrl("http://bridgecontest.org"); } catch (IOException ex) { JOptionPane.showMessageDialog( this, resourceMap.getString("browserOpenFail.text"), resourceMap.getString("messageBox.title"), JOptionPane.INFORMATION_MESSAGE); } }
/** * Opens an URL in the system's default browser if a browser is set * * @see #setUrlBrowser * @throws UnsupportedOperationException when there is no browser set. */ public void openUrl(URL url) throws UnsupportedOperationException { if (browser != null) browser.openUrl(url); }