@Override public void hyperlinkUpdate(HyperlinkEvent hlevt) { if (EventType.ACTIVATED == hlevt.getEventType()) { if (hlevt.getURL () != null) { URLDisplayer.getDefault().showURLExternal(hlevt.getURL()); } } } });
private void btnDonateMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnDonateMouseClicked try { HtmlBrowser.URLDisplayer.getDefault().showURLExternal(new URL("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=K4CMP92RZELE2")); } catch (MalformedURLException ex) { Exceptions.printStackTrace(ex); } }//GEN-LAST:event_btnDonateMouseClicked
private void btnVisitHomePageMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_btnVisitHomePageMouseClicked try { HtmlBrowser.URLDisplayer.getDefault().showURLExternal(new URL("https://github.com/markiewb/nb-codeoutline/")); } catch (MalformedURLException ex) { Exceptions.printStackTrace(ex); } }//GEN-LAST:event_btnVisitHomePageMouseClicked