Posted by bernmeister
on August 17, 2008 at 12:16 AM PDT
I've built a JXTable with a few rows of text. I use a text field to capture some text which is used to filter out non-matching rows.
Given the following initial, unfiltered table data:
"abc", "def", "ghi"
"jkl", "abc", "mno"
"pqr", "mno", "stu"
and using some code like this:
PatternFilter patternFilter = new PatternFilter();
patternFilter.setPattern( "abc", 0 );
table.setFilters( new FilterPipeline( patternFilter ) );
I should only see the first two rows right?
Nope...I only see the first row. Shouldn't the pattern match work over the whole table?
I can post a the test code here if that would help.
Thanks in advance,