public void performAction() { org.openide.awt.StatusDisplayer.getDefault().setStatusText( NbBundle.getBundle(HTMLViewAction.class).getString("CTL_OpeningBrowser")); try { HtmlBrowser.URLDisplayer.getDefault().showURL( new java.net.URL(HtmlBrowser.getHomePage () )); } catch (java.net.MalformedURLException e) { String home = HtmlBrowser.getHomePage (); if (!home.startsWith ("http://")) { // NOI18N home = "http://" + home; // NOI18N } try { HtmlBrowser.URLDisplayer.getDefault().showURL( new java.net.URL(home)); } catch (java.net.MalformedURLException e1) { Exceptions.printStackTrace(e1); } } }