java - Swing: saving and loading components -
i'm trying save , load state of jpanel has nested custom panels (instances of other classes) , various listeners. these components have been created matisse, have private sub-components.
i've tried xmlencoder/xmldecoder, threw various exceptions on serialization try.
with xstream, can save , load gui state; however, doesn't reload listeners, leaving me stuck read-only component, undesirable.
so, opens little bunch of questions me:
- is there might doing wrong
xstreamserialization? - is access modifier of sub-components relevant of 2 libraries?
- are there other options swing component serialization worth exploring?
- should stick serializing component logic?
Comments
Post a Comment