Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving panel content?  RSS feed

 
abu alfouz
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi..
I have a JPanel that the user changes its component (like buttons) at run time , I want to save this changes so when the user open the program again he can see the panel with his changes, how can I do that?
thank you.
 
Campbell Ritchie
Sheriff
Posts: 53769
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Record the changes in a file saved with the application?
Serialize the panel and deserialize it when reopening the application?

Anybody got any other suggestions?
 
abu alfouz
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about saving each component type and its location in an xml file?
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!