Adding Component to the Palette

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Adding Component to the Palette

Postby sommermartin » Wed Nov 14, 2007 12:47 pm

Hi All,

I subclassed javax.swing.ButtonGroup and tried to add it as an entry to my working category and I get the following:

Invalid class: should be java.awt.Component subclass

Does anybody know of a way around this?

thank you,

Martin
sommermartin
 
Posts: 8
Joined: Wed Oct 03, 2007 12:23 pm

Re: Adding Component to the Palette

Postby Eric Clayberg » Wed Nov 14, 2007 2:05 pm

sommermartin wrote:I subclassed javax.swing.ButtonGroup and tried to add it as an entry to my working category and I get the following:
Invalid class: should be java.awt.Component subclass
Does anybody know of a way around this?

ButtonGroup is not a widget.

Only widgets (java.awt.Component subclasses) may be added to the palette.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: No registered users and 1 guest