when i change the column positions in jtable,how do i get the changed positions when i re login?
posted 7 years ago
i am new to java Swing concept.
i want to create a jtable in which i can change the columns positions.
i wnt to get the same positions when i re login.
how can i save the data in the jtable so that i get the same changed positions
Since 1.4 Java provides a preference API.
More details here http://java.sun.com/j2se/1.4.2/docs/guide/lang/preferences.html You can choose to preserve the column sequence as a preference and use it when you display the table the next time. If your system has multiple users, you can even save the preferences per user.