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

How to omit component's coordinates in xml serialisation  RSS feed

 
Martin Motovsky
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi colleagues,
my application uses XMLEncoder for serialisation. I would like to told to XMLEncoder not to save coordinates of my JPanel.
I found out an excellent article at http://access1.sun.com/SRDs/srd_repository/1.4_javabeans.pdf.
I followed up its idea and I was able to set up transient some properties of the standard awt or swing classes. E.g "name" property of the JPanel. But some properties I was not successful to set up transient . E.g. width, height of the JPanel.
Any ideas, how to proceed?
Thank for help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!