private void browserButtonActionPerformed ( java . awt . event . ActionEvent evt ) { try { Desktop . getDesktop ( ) . browse ( new URL ( localhostURL ) . toURI ( ) ) ; } catch ( IOException e ) { System . err . println ( "IO Exception: " + e . getMessage ( ) ) ; } catch ( URISyntaxException e ) { System . err . println ( "URISyntaxException: " + e . getMessage ( ) ) ; } }
Performs the action when the browser button is pressed which is launch a web browser and browse to the server URL .