Adding my own beans: intial settings troubles

I have tried to add my own Bean to the UIDesigner palette using the methods
described in the online help. I.e., I have a palette.xml file like this:
The class LEDBean looks like this: public class LEDBean extends JLabel implements { ...... public void setStatus(boolean s) { ...... firePropertyChange("status",new Boolean(oldStatus),new Boolean(status)); } public boolean isStatus() { ...... } } The text property is part of JLabel, and it works fine. The status property is part of the LEDBean class and it also seems to work properly. I.e. they are both available in the property panel and the visible bean changes it's appearance as expected. As soon as I add the line to my palette.xml I am unable to create LEDBeans in the uidesigner. The ]]> line works fine.
There seems to be some difference between my getter/setter and those of
BTW, I created a BeanInfo class containing the required:
public PropertyDescriptor[] getPropertyDescriptors() {
try {
PropertyDescriptor status=new
PropertyDescriptor text =new
return new PropertyDescriptor [] { text, status };
} catch (IntrospectionException e) {
return null;
But that didn't help. I've tried just about everything I could think of. No
joy. Has anyone here got any ideas?

Please sign in to leave a comment.