private JButton getBtnApply ( ) { if ( btnApply == null ) { btnApply = new JButton ( ) ; btnApply . setText ( Constant . messages . getString ( "history.filter.button.apply" ) ) ; btnApply . addActionListener ( new java . awt . event . ActionListener ( ) { @ Override public void actionPerformed ( java . awt . event . ActionEvent e ) { try { filter . setMethods ( methodList . getSelectedValuesList ( ) ) ; filter . setCodes ( codeList . getSelectedValuesList ( ) ) ; filter . setTags ( tagList . getSelectedValuesList ( ) ) ; filter . setRisks ( riskList . getSelectedValuesList ( ) ) ; filter . setReliabilities ( confidenceList . getSelectedValuesList ( ) ) ; filter . setNote ( notesComboBox . getSelectedItem ( ) ) ; filter . setUrlIncPatternList ( strToRegexList ( regexInc . getText ( ) ) ) ; filter . setUrlExcPatternList ( strToRegexList ( regexExc . getText ( ) ) ) ; exitResult = JOptionPane . OK_OPTION ; HistoryFilterPlusDialog . this . dispose ( ) ; } catch ( PatternSyntaxException e1 ) { // Invalid regex View . getSingleton ( ) . showWarningDialog ( Constant . messages . getString ( "history.filter.badregex.warning" , e1 . getMessage ( ) ) ) ; } } } ) ; } return btnApply ; }
This method initializes btnApply