I am trying to serialize a JPanel but everytime i get this error:
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: javax.swing
To be serializeable the object (and all the parts of it with exception of the POJOs) needs to implement the Serializable interface.
If you cannot change the class, take a look at XStream.