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 xstream serialization?
  • 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

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -