Using JDK 1.4. New to Java.
I have been playing with saving a JPanel and its contents to a file using writeObject, then restoring it with readObject. However, when the JPanel is read back and displayed, I'm finding that any action listeners I had set up are not being restored. Is this because listeners are not serializable, and so are not savable?
If so, is there a way to save and restore listener info?
I have been playing with saving a JPanel and its contents to a file using writeObject, then restoring it with readObject. However, when the JPanel is read back and displayed, I'm finding that any action listeners I had set up are not being restored. Is this because listeners are not serializable, and so are not savable?
If so, is there a way to save and restore listener info?