To serialize an object, all the objects it references need to also be serializable aswell. You can mark a reference transient if you don't want it to be serialized. This means, if your panel refers to objects which are not serilizable, make them serilizable aswell or mark them transient