This may not be possible, but I have tried every iteration I can think of to get this to work. I have one table with eight columns, three of the columns we be filterable. I can get each column to work independent of the others, but I would like to get them to work together, if possible.
The three columns are: Shop, Labor, and Parts. The desire is to allow "Monroe" to be put into Shop, and "muffler" to be put into Parts, and have the table filtered on both values.
Here is my latest attempt at combining them, may give you a better idea of what I am talking about.
It compiles and runs, but it filters only on the last entry (partsFilter)
Joined: Sep 11, 2007
Ok, I found that there is an andFilter, but I haven't been able to find any examples of how it is coded. I've tried a couple ways, but none of them compile.
Usually, any "and" returns true if all elements are true and false otherwise. Purely theoretically, if there are no elements that still means that all elements are true.
In the case of RowFilter.andFilter, the "elements" are the return values of the include method of each filter.
If you ever want to look at the source of a Java class, in your JDK folder there is a file called "src.zip". Inside is the source code for most of the core API.