can't uncheck cutom component create in GUI designer using custom component

Hello,

i created a simple JPanel addad as custom component, and have added to a form, the custom create option is checked. i'm not able to turn off.

Some shots:
after putting the component into the form: http://i17.tinypic.com/629136o.jpg
after trying to uncheck the custom creation: http://i11.tinypic.com/4pk1zqf.jpg

How can i fix this?

Selena build 7020, Ubuntu linux, Java 1.6.0

Message was edited by:
Fazekas Imre

5 comments

Hello Fazekas,

i created a simple JPanel addad as custom component, and have added to
a form, the custom create option is checked. i'm not able to turn off.

Some shots:
after putting the component into the form:
http://i17.tinypic.com/629136o.jpg
after trying to uncheck the custom creation:
http://i11.tinypic.com/4pk1zqf.jpg
How can i fix this?


If your JPanel doesn't have a default constructor with no arguments, you
have to use the custom create option because otherwise the generated code
would not be able to instantiate your JPanel.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

I have a default constructor, that was my first activity to do while creating the component.

0

Hello Fazekas,

I have a default constructor, that was my first activity to do while
creating the component.


Please also ensure that the constructor is public, and the latest version
of your class is loaded into the IDEA VM (hit "Reload custom components"
button on toolbar).

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

ohh, resolving my previous problem ( http://www.intellij.net/forums/thread.jspa?threadID=267936&tstart=0 ) resolved this one too....

i don't fully understand...

0

"Please also ensure that the constructor is public, and the latest version
of your class is loaded into the IDEA VM (hit "Reload custom components"
button on toolbar)."

The constructor is public, and after every component class definition modification, i press the custom component reload button.

By the way, this component reload fuction may become automatic while i compile a project contanining custom components?

0

Please sign in to leave a comment.