private JButton getBtnAccept ( ) { if ( btnAccept == null ) { btnAccept = new JButton ( ) ; btnAccept . setText ( "Accept" ) ; btnAccept . addActionListener ( new java . awt . event . ActionListener ( ) { @ Override public void actionPerformed ( java . awt . event . ActionEvent e ) { accepted = true ; LicenseFrame . this . dispose ( ) ; } } ) ; } return btnAccept ; }
This method initializes btnAccept