private void updateFinder(){
  int flag=0;
  if (!jChkRegex.isSelected()) {
    flag|=Pattern.LITERAL;
  }
  flag|=(jChkIgnoreCase.isSelected()) ? Pattern.CASE_INSENSITIVE : 0;
  if (jChkIgnoreCase.isSelected()) {
    flag|=Pattern.CASE_INSENSITIVE;
  }
  String regex=(String)jCmbFind.getSelectedItem();
  if (regex != null && regex.length() > 0) {
    Pattern pattern=Pattern.compile(regex,flag);
    finder.setWrap(jChkWrap.isSelected());
    finder.setPattern(pattern);
    ActionUtils.insertIntoCombo(jCmbFind,regex);
  }
 else {
    finder.setPattern(null);
  }
}

private void updateFinder ( ) { int flag = 0 ; if ( ! jChkRegex . isSelected ( ) ) { flag |= Pattern . LITERAL ; } flag |= ( jChkIgnoreCase . isSelected ( ) ) ? Pattern . CASE_INSENSITIVE : 0 ; if ( jChkIgnoreCase . isSelected ( ) ) { flag |= Pattern . CASE_INSENSITIVE ; } String regex = ( String ) jCmbFind . getSelectedItem ( ) ; if ( regex != null && regex . length ( ) > 0 ) { Pattern pattern = Pattern . compile ( regex , flag ) ; finder . setWrap ( jChkWrap . isSelected ( ) ) ; finder . setPattern ( pattern ) ; ActionUtils . insertIntoCombo ( jCmbFind , regex ) ; } else { finder . setPattern ( null ) ; } }
update the finder object with data from our ui
