javax.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

javax.swing.GroupLayout

Postby oraether » Mon Oct 20, 2008 12:01 pm

Hey i´m using the SwingDesigner Version from JBuilder 2008 (Eclipse 3.3).

Is the LayoutManager javax.swing.GroupLayout integrated in SwingDesigner Version of JBuilder 2008 ?

I only found the jdesktop Version.

Thanks
oraether
 
Posts: 3
Joined: Mon Oct 20, 2008 8:08 am

Re: javax.swing.GroupLayout

Postby Eric Clayberg » Mon Oct 20, 2008 12:23 pm

oraether wrote:Is the LayoutManager javax.swing.GroupLayout integrated in SwingDesigner Version of JBuilder 2008 ?

Yes. If you are using JDK 1.6 and turn on the Designer > Swing > GroupLayout > Use JDK classes if possible preference, Swing Designer will generate code using javax.swing.GroupLayout.

Image
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: javax.swing.GroupLayout

Postby oraether » Mon Oct 20, 2008 10:47 pm

Sorry, doesn´t work for me. (i´m using JB2008 enterprise)

1. I set the preference exactly like yours

2. i create a new project and set in the JRE section the Java Version to 1.6.

3. Create a new JPanel

when i switch to layout i have a tab with "Swing Layouts".
Within this menu i have

Absolute(null Layout)
FlowLayout
BorderLayout
GridLayout
CardLayout
SpringLayout
FormLayout
GroupLayout
BoxLayout

But when i select the GroupLayout it is not "javax.swing.GroupLayout"
It´s still "org.jdesktop.layout.GroupLayout"

Anything else i have can check ? JB2008 itself is running under 1.5. Is it needful, that JB2008 is running under 1.6 ?
oraether
 
Posts: 3
Joined: Mon Oct 20, 2008 8:08 am

Re: javax.swing.GroupLayout

Postby Alexander.Mitin » Tue Oct 21, 2008 6:20 am

oraether wrote:Is it needful, that JB2008 is running under 1.6 ?

Yes, you have to run the JB under 1.6 since the only this JRE contains the GroupLayout classes. Otherwise the stand-alone jar would be used.
Alexander Mitin
Alexander.Mitin
Moderator
 
Posts: 155
Joined: Fri Jan 19, 2007 3:57 am

Re: javax.swing.GroupLayout

Postby oraether » Tue Oct 21, 2008 10:41 am

That´s it - thanks
oraether
 
Posts: 3
Joined: Mon Oct 20, 2008 8:08 am

Re: javax.swing.GroupLayout

Postby Eric Clayberg » Tue Oct 21, 2008 10:47 am

Glad that worked.
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