Search code examples
javarowfiltertablerowsorter

TableRowSorter and RowFilter in java 1.4


I'm actually in a middle of a small problem. I have discovered that TableRowSorter and RowFilter are not included in Java 4. All of our clients are using Java 1.4.2_08 and it's not convenient for us to install java 6 on their machines. Is there by any chance, a way in which I can use the TableRowSorter, and the RowFilter classes, by using JDK 1.4.2_08? Please help.


Solution

  • I ended up using regex to parse the entered search criteria in my JTables, and creating a new ArrayList to store the results. After that, I did the data binding for my JTable's model with the newly created ArrayList.