Java, Beans, XML and serialization.
Hello, i'd like to have some answers to thoses questions:
Im coding a programme with "graphs" inside JInternalFrames and i would like to save them and what is inside (panels, with panels inside and dnd listeners and my lord, a lot of things indeed).
Can i just use XMLEncoder/XMLDecoder to read/save those Graphs?
It seems that i can save basic components:
encoder.writeObject(new JButton("segsg"));
works, but
encoder.writeObject(t);
where t (Try) is something that extends a JButton doesnt work and i get:
java.lang.InstantiationException: ariane.ui.Workspace$Try
Continuing ...
java.lang.Exception: discarding statement XMLEncoder0.writeObject(Workspace$Try0);
Cant XMLEncoder save nothing but basic JButtons or JFrames?

