Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

JBuilder 2005 typesafe enum property values

8 views
Skip to first unread message

Ian Carter

unread,
Jun 24, 2005, 10:45:01 AM6/24/05
to
I am writing an applet for which I've I've created a fairly simple javabean.
The bean has a property "lottoStyle" which is a typesafe enum (class
LottoStyle) that can be any one of 5 different values.
I've registered a PropertyEditor for this property, but JB's UI designer
seems to have a problem with it when I select the bean in the applet or if I
display the bean in the UI designer. I get a whole bunch of the following
errors in the Messages window:-

"java.lang.ClassNotFoundException: .LottoStyle
createDefaultPropertyEditor(.LottoStyle)"

I can't find any reference to a "createDefaultPropertyEditor()" method
anywhere. Can anyone tell me what's going wrong??


Ian Carter

unread,
Jun 24, 2005, 11:47:10 AM6/24/05
to
I've managed to answer my own question here.
I needed to create a BeanInfo class for my bean and specify my
PropertyEditor in the getPropertyDescriptors() method using the
PropertyDescriptor.setPropertyEditorClass() method.

Ian

"Ian Carter" <icca...@gotadsl.co.uk> wrote in message
news:42bc1c6d$3...@newsgroups.borland.com...

0 new messages