Search within Java in General
Register / Login
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Java in General
PersistanceDelegate for Extended Objects
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
I have a Javbean which extends java.awt.Color(Which doesn't have a no argument constructor) and when i try to write the class using XMLEncoder its throwing Exception as a custom persistance delegator needs to be there
bean looks like
Class CustomColor extends java.awt.Color
public CustomColor(Color c)
super(c.getRed(), c.getGreen(), c.getBlue());
// Some more variables
How to set the new PersistanceDelegate for this class ??
I tried to use
"blue" }) );
But its not working ... I am not in a position to make that bean with out a constructor and provide a set and get methods for it
Can any one let me know how to write Delegates for this class ??
permaculture is largely about replacing oil with people. And one tiny ad:
Garden Master Course kickstarter
Boost this thread!
Creating a working traffic light!!
Creating a working trafficlight!
Creating a working traffic light!