In Jave 1.4, I wrote my own JTable subclass (NTable) to implement filtering, sorting, column resizing, etc.
I made my NTable capable of filtering by explicit row number. This worked great. My application was responsible for determining which rows should be filtered based on content (or if the user just wanted to hide a specific row), and it passed the row numbers to NTable to actually filter.
Now with Mustang/6.0
Java, the filtering/sorting is finally provided. HOWEVER, the combination of generics (which still hurt my head) and the apparent lack of a row number parameter make it impossible to filter specific rows. Or so it seems to me. Am I wrong?
If the user selects the fifth row and clicks the "filter" button, can I use RowFilter to get rid of that particular row and no others? Or do I need to roll my own again?
I have to do this anyway in order to properly add in the column resizing and HTML-enabled cells (requiring multi-line, or variable-width, rows). But it seems a waste to completely ignore the new filtering/sorting package just because of one stupid little oversight.
Help!