RowFilter (final IFilterEditor editor) { final int index = editor.getModelIndex(); final String string = (choice instanceof String) ? (String)choice : null; return new RowFilter() { @Override public boolean include(Entry entry) { Object o = entry.getValue(index); if ((string != null) && (o instanceof String) && editor.isIgnoreCase()) { return string.equalsIgnoreCase((String)o); } return choice.equals(o); } }; }