Unable to generate Swing GroupLayout

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

Unable to generate Swing GroupLayout

Postby mandrew » Wed Nov 19, 2008 7:09 am

Hi, How can I avoid using the org.jdesktop.layout.GroupLayout and use the Swing version instead. I am using JRE 1.6 and have remove all pointers to earlier versions. I also keep removing the Swing-Layout Jar file from the required libraries but everytime I create a new JFrame and change it to the GroupLayout it is automatically added back in. Ultimately I have Netbeans Swing classes which I want to transfer to JB2008 but keep getting errors due to the this problem. HELP!
mandrew
 
Posts: 4
Joined: Wed Nov 19, 2008 6:58 am

Re: Unable to generate Swing GroupLayout

Postby Eric Clayberg » Wed Nov 19, 2008 8:12 am

Make sure the Designer > Swing > GroupLayout > Use JDK classes if possible is turned on.

Image

Also make sure that you are running Eclipse using JDK 1.6 and not an earlier version that does not support GroupLayout.
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

Re: Unable to generate Swing GroupLayout

Postby mandrew » Wed Nov 19, 2008 8:20 am

Thanks for the Reply. All that is done but still the org package appears. Interestingly if I go to help and configuration it states i'm using Java 1.5 but I am definitely pointing at 1.6. I know this because some of the classes I've transferred have the Swing Grouplayout and I had to change from 1.5 to 1.6 to remove the compiler errors. Any ideas.
mandrew
 
Posts: 4
Joined: Wed Nov 19, 2008 6:58 am

Re: Unable to generate Swing GroupLayout

Postby Eric Clayberg » Wed Nov 19, 2008 8:35 am

There are two JDKs involved here: the one you compile against and the one you run Eclipse against. Both have to be JDK 1.6 or higher.

It sounds like you are still launching Eclipse using JDK 1.5.
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

Re: Unable to generate Swing GroupLayout

Postby mandrew » Thu Nov 20, 2008 2:45 am

Thanks but how do I change the Eclipse jvm? I've updated the Jbuilder.ini file with line -vm C:\Program Files\Java\jre1.6.0_06\bin\javaw but this has no effect.
mandrew
 
Posts: 4
Joined: Wed Nov 19, 2008 6:58 am

Re: Unable to generate Swing GroupLayout

Postby mandrew » Thu Nov 20, 2008 2:56 am

Now done. Had the line in the wrong place in the config file. Grouplayout now working correctly. Config file now reads:

-configuration
C:\JBuilder2008\configuration_JBuilder
-showsplash
com.borland.jbuilder
-vm
C:\Program Files\Java\jre1.6.0_06\bin\javaw
--launcher.XXMaxPermSize
256m
-vmargs
-Xms80M
-Xmx896M

Many thanks for your prompt help.
mandrew
 
Posts: 4
Joined: Wed Nov 19, 2008 6:58 am

Re: Unable to generate Swing GroupLayout

Postby Eric Clayberg » Thu Nov 20, 2008 5:48 am

Good. I'm glad you got it working.
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