Hello to all,
I have a Custom JPanel which I want to save state of. I am using XMLEncoder and XMLDecoder class to save and retrieve the state of my JPanel. However when i try to save the JPanel using writeObject method i get an exception
Here Admin is my JPanel which extends JPanel.
The reason I am using
Java bean persistence is at some stage I am modifying the JPanel components such as adding a Jlabel with an icon etc. Now what I want is when the application is restarted these changes must be reflected. I tried Simple serialization but as i designed my JPanel using Netbeans and it is using GroupLayout so I got
The XML file that is generated after saving is as follows :