Hello,
could anyone help me?
I created class extending JPanel - added some content ... now i'd like to
add it to my application window - by "clicking" in netbeans. But when i try
to add it to pallete with other components and it says "class cannot be
instantiated."
I tried to figure how to make a javabean out of it - then i hope it should
work - but from those java.sun.com tutorials i figured out only i should
implement Serializable and use standard methods like set...() and get...().
Both it uses.
Please help me, what to do to use a class extending JPanel in NetBeans form
editing GUI.
Lots of thanks.
Paja
Christophe Vanfleteren - 23 Jun 2004 23:19 GMT
Pavel ®upa wrote:
> Hello,
> could anyone help me?
[quoted text clipped - 8 lines]
> Please help me, what to do to use a class extending JPanel in NetBeans
> form editing GUI.
You probably haven't added a default constructor. Add a constructor to the
JPanel that doesn't take any arguments.
If you do have a default constructor, make sure that no exeption gets thrown
while instantiating it.

Signature
Kind regards,
Christophe Vanfleteren