protected final JButton getButtonCancel ( ) { if ( buttonCancel == null ) { buttonCancel = new JButton ( ) ; buttonCancel . setText ( "Cancel" ) ; buttonCancel . setPreferredSize ( new Dimension ( 80 , 26 ) ) ; buttonCancel . addActionListener ( new ActionListener ( ) { public void actionPerformed ( final ActionEvent e ) { if ( destDirSelector != null ) { destDirSelector . cancel ( ) ; } } } ) ; } return buttonCancel ; }
Returns the Cancel button for usage as default button .