-
Saving Jtable settings
Hi,
There is a table (Jtable) that's already exists. I like to add a feature that when the table closes, all the table settings are saved (column width, position of each column, which column is sort and which direction etc) into a file. The next time when the table is opened, I can open this file and use these saved settings to contruct the table the exact same way.
Now my question is: How do I find out these column widths, column positions and which column is sorted and in what order?
Thanks!
-
Try
Code:
TableColumn column = table.getColumnModel ().getColumn (index);
column.getWidth ();