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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -