Morph operation can cause compile error

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

Morph operation can cause compile error

Postby Thomas.Epping » Mon Nov 05, 2007 10:13 pm

Hi,

the morph operation in SwingDesigner 6.5.0 for Eclipse 3.3 seems to cause a compile error in some cases.

I am using the 'Create Swing component fields in accessor methods' option of SwingDesigner. The morphing of a JButton into a, say, JCheckBox results in the following code. It causes a compile error because the return type of the accessor method is not changed.

private JButton getButton() {
if (button == null) {
button = new JCheckBox();
button.setText("New JButton");
}
return button;
}

Regards,
Thomas
Thomas.Epping
 
Posts: 1
Joined: Tue Oct 02, 2007 3:55 am
Location: Germany

Re: Morph operation can cause compile error

Postby Eric Clayberg » Wed Nov 07, 2007 4:11 am

Thomas.Epping wrote:the morph operation in SwingDesigner 6.5.0 for Eclipse 3.3 seems to cause a compile error in some cases.

This has now been fixed in the latest build.
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