i have a problem with JTable and setAutoCreateRowSorter(true); when I sort some column, the index table stays but order of row is different.
How can i refresh my AbstractTableModel and keeping my sort.
-
beware: you are not supposed to do anything with your model! The very bone of Swing sorting mechanism is that there are two coordinate systems (one on your model, the other on your view). The table (more specifically: its RowSorter) keeps the mapping between both, then your application code uses the conversion methods to get hold of a particular value.kleopatra– kleopatra2011-12-05 14:54:44 +00:00Commented Dec 5, 2011 at 14:54
Add a comment
|