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!

Sort a JTable using TableRowSorter

843807Sep 21 2009 — edited Sep 22 2009
Hello all,

I need to sort a table on a column, but the sorting trigger is coded in the program. Currently, I'm using the TableRowSorter.
All is good, except the sorting is not to be decided by the user, so I don't need the column header click trigger. More over, I also don't need to display on the header anything that might give the user the impression that he can trigger the sort, that is i don't need any sorting arrows.

Does anyone have an idea how to do this clean? Until now, the only solution I have is to do the sorting myself, but it's somewhat messy.

Thanks and best regards,
Domi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 20 2009
Added on Sep 21 2009
10 comments
323 views