private void openInGitHub ( AppInfo info ) { if ( Desktop . isDesktopSupported ( ) ) { try { URI uri = new URI ( UtilIO . getGithubURL ( info . app . getPackage ( ) . getName ( ) , info . app . getSimpleName ( ) ) ) ; if ( ! uri . getPath ( ) . isEmpty ( ) ) Desktop . getDesktop ( ) . browse ( uri ) ; else System . err . println ( "Bad URL received" ) ; } catch ( Exception e1 ) { JOptionPane . showMessageDialog ( this , "Open GitHub Error" , "Error connecting: " + e1 . getMessage ( ) , JOptionPane . ERROR_MESSAGE ) ; System . err . println ( e1 . getMessage ( ) ) ; } } }
Opens github page of source code up in a browser window