I am trying to make the current JFrame become a JFrame that is stored in memory. At the moment I am correctly reading the JFrame from memory and I can get it to display but all the action listeners are not working.
gui.dispose();
gui = savedGUI;
gui.setVisible(true);
This doesn’t seem to be properly setting the current GUI (gui) to the saved version (savedGUI). Is there a different method I should be calling on gui rather than setVisible?
Thanks in advance!
The problem was solved when I made sure all the ActionListeners implemented Serializable.