When you read the data back from the file, you change the "Table" variable so it now refers to some other JTable than the one which is displayed in the GUI. That of course doesn't change the GUI in any way.
The way to fix that is to not save the JTable. There isn't any point in saving the GUI component, anyway. What you really want to save is the data, which is the contents of the TableModel. To save the data, get the TableModel from the JTable and write that to the file. To restore the data, read the TableModel back from the file and put it into the JTable via the JTable's setModel() method.
Joined: Feb 22, 2011
Thaaaaaaaaaaaaaaaaaaaaaaanks very much, your hint solved the problem.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com