private JButton getCancelButton ( ) { if ( cancelButton == null ) { cancelButton = new JButton ( ) ; cancelButton . setText ( "Cancel" ) ; cancelButton . setMnemonic ( ' ' ) ; cancelButton . addActionListener ( new java . awt . event . ActionListener ( ) { public void actionPerformed ( java . awt . event . ActionEvent e ) { cancelled = true ; timedOut = false ; restore ( ) ; setVisible ( false ) ; } } ) ; } return cancelButton ; }
This method initializes cancelButton