1
我將嘗試爲JXTreeTable實現RowFilter,但它不起作用。我的實現是水木清華這樣的:JXTreeTable RowFilter實現
public class CustomRowFilter extends RowFilter<TableModel, Integer> {
@Override
public boolean include(Entry entry) {
if (entry.getValueCount() == 3) {
Integervalue1 = (Integer) entry.getValue(1);
Integervalue2 = (Integer) entry.getValue(2);
if (value1.equals(value2)) {
return true;
}
}
return false;
}
}
有人可以告訴我哪裏是我的錯?可能是JXTreeTable不支持過濾?
日Thnx預先