okButton.addActionListener(this);
}
public void actionPerformed(ActionEvent evt) {
FilterProperty pattern = filter.getProperties()[1];
FilterProperty useRegex = filter.getProperties()[2];
try {
if (pattern.getValue() == null || !pattern.getValue().equals(textField.getText())) {
pattern.setValue(textField.getText());
}
if (useRegex.getValue() == null || !useRegex.getValue().equals(regexCheckbox.isSelected())) {
useRegex.setValue(regexCheckbox.isSelected());
}
} catch (Exception e) {
e.printStackTrace();
}
}