custom properties on current class in designer

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

custom properties on current class in designer

Postby JimVanDam » Wed Jan 24, 2007 11:43 pm

Been using the BeanInfo support on custom widgets and that works great.
I am growing into a bigger fan of the product every day :-)

I did notice that when I have a JPanel subclass component with custom properties, they will be shown when the component is used on another container, but they are not shown when I load that class in the designer directly (open component design). I guess that is because the class is not instantiated when loaded by designer directly?
Is there a way to show custom properties on the class currently in the designer?

Regards,

Jim
JimVanDam
 
Posts: 4
Joined: Sat Jan 20, 2007 4:49 am

Re: custom properties on current class in designer

Postby Eric Clayberg » Fri Jan 26, 2007 7:30 pm

JimVanDam wrote:I guess that is because the class is not instantiated when loaded by designer directly?

Yes, that is exactly the issue.

JimVanDam wrote:Is there a way to show custom properties on the class currently in the designer?

We could possibly add editing support for those properties in the future, but you would not be able to see their effect in the design view.
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