JTable + pagination table model and sorting
843806Oct 6 2008 — edited Oct 7 2008Hi all,
I have extended AbstractTableModel to create a custom taable model, that implements paging. The JTable uses this model and successfully displays 40 rows or < user specified number of rows> in the table.
I have enabled row sorting by using the default method, by setting setAutoCreateRowSorter(true) .This is where I have a problem.
The sorting takes place, but on the view (visible 40 rows only). Ideally I would like the complete model to be sorted.
Any suggestion or help, on how to correctly implement this will be great.
Edited by: apakhira on Oct 6, 2008 11:49 PM