custom property editors part II

I have a custom property editor that sets up an array of values, plus an associated string.

I am having problems being able to use these items (setup in the property editor) from the object on which the property exists.

eg suppose i had a property Colour on an Object Door, I set the Colour to blue in my property editor, but the Object does not register this change.

Obviously I am not setting the property correctly from my property editor, but...

All of the documentation I have come across is severely lacking on advanced property editor programming...

somebody please help!!

[625 byte] By [mctaff] at [2007-9-26 1:50:25]
# 1
you need to add propertyEditor.setValue(..) in the custom editor.
wlzhang at 2007-6-29 2:57:34 > top of Java-index,Desktop,Developing for the Desktop...
# 2

already done that....

apparently it's something to do with the inner properties of the editor being 'hidden' and the IDE doesn't notice that the bean has changed when its inner properties have changed.

tried setting the property to 'hidden' as recommended elsewhere, but still no luck

mctaff at 2007-6-29 2:57:34 > top of Java-index,Desktop,Developing for the Desktop...
# 3
What kind of IDE you use? Sometime for bean the IDE behave strange. Rename it and retry again may help.
wlzhang at 2007-6-29 2:57:34 > top of Java-index,Desktop,Developing for the Desktop...
# 4
sorted it.you have to return a complicated string from getJavaInitializationString() which can be used to instantiate the object, and create an appropriate constructor for the object
mctaff at 2007-6-29 2:57:34 > top of Java-index,Desktop,Developing for the Desktop...