}
}
@Override
public void setValueAt(Object value, int row, int col) {
Rule rule = rules.get(row);
switch (col) {
case 0:
rule.setPattern((String) value);
break;
case 1:
rule.setRegularExpression((boolean) value);
break;
case 2:
rule.setIgnoreCase((boolean) value);
break;
case 3:
rule.setBackgroundColor((Color) value);
fireTableCellUpdated(row, 5);
break;
case 4:
rule.setForegroundColor((Color) value);
fireTableCellUpdated(row, 5);
break;
default:
return;
}