Sort a JTable using TableRowSorter
843807Sep 21 2009 — edited Sep 22 2009Hello 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