I'm working on a project where I'm saving to file a subclass of JPanel, which in turn contains other objects. All the objects being saved in the project implement Serializable. I have no problem saving to file and re-opening the file. But some functionality of the objects are lost! For instance, all the objects have an inner class that extends MouseAdapter, like this:
Once I open the file and click on the object, this mousePressed(....) method is supposed to fire. But it doesn't. The call to JTestComposer.setEditor(MyComponent.this); actually brings up a Properties dialog box for this object. I can't get the Properties dialog box though if mousePressed(...) doesn't fire.