Is Visual Inheritance supposed to work with JPanels?

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

Is Visual Inheritance supposed to work with JPanels?

Postby mErph » Sat Dec 20, 2008 11:04 am

Hi,

I have been trying to follow the Visual Inheritance demo posted on your website. Except that instead of JFrame, I'm using JPanel. I can't get it to work at all. The "Expose component" option does add, for instance, " JLabel getLabel() { return label; } " to the source code of the superclass, but the component is not exposed to the subclass, via the designer interface, either in the property page or the Design tab.
mErph
 
Posts: 1
Joined: Sat Dec 20, 2008 10:58 am

Re: Is Visual Inheritance supposed to work with JPanels?

Postby Eric Clayberg » Sat Dec 20, 2008 1:04 pm

mErph wrote:I have been trying to follow the Visual Inheritance demo posted on your website. Except that instead of JFrame, I'm using JPanel. I can't get it to work at all. The "Expose component" option does add, for instance, " JLabel getLabel() { return label; } " to the source code of the superclass, but the component is not exposed to the subclass, via the designer interface, either in the property page or the Design tab.

Can you provide a test case?

Is your code compiling properly?
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: Google [Bot] and 1 guest