private static void showAboutDialog ( ) { JDialog dialog = new JDialog ( ) ; dialog . setSize ( new Dimension ( 300 , 300 ) ) ; String msg = "This viewer is based on <b>BioJava</b> and <b>Jmol</>. <br>Author: Andreas Prlic <br> " ; msg += "Structure Alignment algorithm based on a variation of the PSC++ algorithm by Peter Lackner." ; JEditorPane txt = new JEditorPane ( "text/html" , msg ) ; txt . setEditable ( false ) ; JScrollPane scroll = new JScrollPane ( txt ) ; Box vBox = Box . createVerticalBox ( ) ; vBox . add ( scroll ) ; JButton close = new JButton ( "Close" ) ; close . addActionListener ( new ActionListener ( ) { @ Override public void actionPerformed ( ActionEvent event ) { Object source = event . getSource ( ) ; JButton but = ( JButton ) source ; Container parent = but . getParent ( ) . getParent ( ) . getParent ( ) . getParent ( ) . getParent ( ) . getParent ( ) ; JDialog dia = ( JDialog ) parent ; dia . dispose ( ) ; } } ) ; Box hBoxb = Box . createHorizontalBox ( ) ; hBoxb . add ( Box . createGlue ( ) ) ; hBoxb . add ( close , BorderLayout . EAST ) ; vBox . add ( hBoxb ) ; dialog . getContentPane ( ) . add ( vBox ) ; dialog . setVisible ( true ) ; }
show some info about this gui