Skip to main content

JXTreeTable setRowFilter does not work

1 reply [Last post]
Joined: 2014-02-11
Points: 0


I am using a JXTreeTable (swingx 1.6.4) and I am trying to filter some lines of the tree table. In order to perform the filtering, I am using the setRowFilter method, but no content is being filtered.
The code that I am using is:

treeTable.setRowFilter(RowFilters.regexFilter("^res", 0));

Should the tree table be “refreshed” after applying the filter, in order to hide the lines to be filtered?

Rui Torres

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-06-12
Points: 0

Unless I'm mistaken, I think the filter for the treetable is ignored since that functionality isn't suported for trees...

But you might want to check the source code to be sure.