tablerowsorter

JTable RowFilter

Is is possible to some how get the index of the selection corresponding to the non filtered table? After the table is filter using a regexFilter. JTable getSelectedRow returns the index of the filtered table? ...

Removing rows from a DefaultTableModel with a RowSorter attached doesn't remove last row

I'm somewhat new to Java, and especially new to tables, and I'm having a bit of trouble with one particular task. I have a JTable that uses a custom table model that extends DefaultTableModel, and I've attached a TableRowSorter to the table. The sample application below has two buttons--one will load rows into the table and one will re...

Sorting Long integers with Java TableRowSorter

I'm have a table that handles large numbers, and I want it to be sorted. The table has no problem displaying the numbers, but TableRowSorter seems to treat the numbers as Integers, thus sorting large values incorrectly when they exceed the maximum Integer value. How can I use TableRowSorter to sort Longs? ...