Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable + pagination table model and sorting

843806Oct 6 2008 — edited Oct 7 2008
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2008
Added on Oct 6 2008
1 comment
2,583 views