private JButton getBtnReset ( ) { if ( btnReset == null ) { btnReset = new JButton ( ) ; btnReset . setText ( Constant . messages . getString ( "history.filter.button.clear" ) ) ; btnReset . addActionListener ( new java . awt . event . ActionListener ( ) { @ Override public void actionPerformed ( java . awt . event . ActionEvent e ) { exitResult = JOptionPane . NO_OPTION ; // Unset everything methodList . setSelectedIndices ( new int [ 0 ] ) ; codeList . setSelectedIndices ( new int [ 0 ] ) ; tagList . setSelectedIndices ( new int [ 0 ] ) ; riskList . setSelectedIndices ( new int [ 0 ] ) ; confidenceList . setSelectedIndices ( new int [ 0 ] ) ; notesComboBox . setSelectedItem ( HistoryFilter . NOTES_IGNORE ) ; regexInc . setText ( "" ) ; regexExc . setText ( "" ) ; filter . reset ( ) ; } } ) ; } return btnReset ; }
This method initializes btnReset