• 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: 55351
157
  • 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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!