I have a JTable that's sortable and resizable. I like to save the column widths and the indexes of columns that is sorted and in what order. How do I do that?
Thanks!
Printable View
I have a JTable that's sortable and resizable. I like to save the column widths and the indexes of columns that is sorted and in what order. How do I do that?
Thanks!
The TableColumnModel contains the TableColumns which contains the width of the colum.
The DefaultRowSorter contains a method to get the current sort keys.
Thanks! I think I still need some help with the sort...
I found that table..getRowSorter().getSortKeys will return the list of sort keys, but what is the format of this "list of sort keys"?
Thanks.
What does the API tell you is in the List?
So are they pairs of column index and sort orders?