private void updateFilters() { List<RowFilter<Object, Object>> filters = new ArrayList<RowFilter<Object, Object>>(2); if (clientFilter != null) { filters.add(clientFilter); } if (numberFilter != null) { filters.add(numberFilter); } if (fromDateFilter != null) { filters.add(fromDateFilter); } if (toDateFilter != null) { filters.add(toDateFilter); } RowFilter<Object, Object> comboFilter = RowFilter.andFilter(filters); invoiceTable.setRowFilter(comboFilter); }
public void clearFilters() { invoiceTable.setRowFilter(null); }