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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -