component cannot be instantiated

Hi,

I've added a custom component,which is an extension to JTextField, to the GUI Designer (in IDEA 4.5). The component has a default constructor, just like required by the bean spec. However, when I try to add it to a form, I get "Class MyTextField cannot be instantiated." The strange thing is that the form eventually works if I try to compile and run it. Is there anything special I need to do to make the the Designer recognize the class?

1 comment

I think this is caused be extending a component which doesn't have a no-arg constructor.

0

Please sign in to leave a comment.