Problem with Designer and 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

Problem with Designer and GroupLayout

Postby zps7 » Thu Jan 08, 2009 12:57 pm

I am having trouble using Designer and GroupLayout. Everytime a create a screen (JFrame) that has more than one or two components on it and they all usej GroupLayout, the Designer loses track of some of the components and stops working correctly. I am Java 1.5 in both my IDE and project and have added the swing-layout jar to my project.

The problem usually starts when I try to preview and get the following error in my .log file

!STACK 0
java.lang.IllegalStateException: Component model not found for id = 160
at com.swtdesigner.model.swing.layouts.managers.group.GroupLayoutInfo.getComponentBeanInfoByID(GroupLayoutInfo.java:624)
at com.swtdesigner.model.swing.layouts.managers.group.GroupLayoutInfo.getComponentBounds(GroupLayoutInfo.java:667)
at org.netbeans.modules.form.layoutdesign.LayoutDesigner.imposeCurrentContainerSize(LayoutDesigner.java:2531)
at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updatePositions(LayoutDesigner.java:133)
at org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:72)
at com.swtdesigner.model.swing.layouts.managers.group.GroupLayoutInfo.controlCreationComplete(GroupLayoutInfo.java:230)
at com.swtdesigner.model.JavaInfo.controlCreationComplete(JavaInfo.java:891)
at com.swtdesigner.model.swing.JavaBeanInfo.controlCreationComplete(JavaBeanInfo.java:2848)
at com.swtdesigner.model.JavaInfo.controlCreationComplete(JavaInfo.java:891)
at com.swtdesigner.model.swing.JavaBeanInfo.controlCreationComplete(JavaBeanInfo.java:2848)
at com.swtdesigner.model.JavaInfo.controlCreationComplete(JavaInfo.java:891)
at com.swtdesigner.model.swing.JavaBeanInfo.controlCreationComplete(JavaBeanInfo.java:2848)
zps7
 
Posts: 3
Joined: Thu Jan 08, 2009 12:47 pm

Re: Problem with Designer and GroupLayout

Postby Eric Clayberg » Fri Jan 09, 2009 5:01 am

Please make sure that you are using the latest Swing Designer build.

If that does not help, send us a test case and your complete Eclipse ".log" file.
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: Problem with Designer and GroupLayout

Postby zps7 » Fri Jan 09, 2009 8:20 am

we are having better success at this point mathing up the IDE executing JDK (using 1.5 and swing-layout) and our app settings (JDK 1.5 and adding in the swing-layout.jar into the classpath)

We will post any problem info to this thread using your guidelines/suggestions if we encounter any more problems
zps7
 
Posts: 3
Joined: Thu Jan 08, 2009 12:47 pm

Re: Problem with Designer and GroupLayout

Postby Eric Clayberg » Fri Jan 09, 2009 1:34 pm

Sounds good.
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: Problem with Designer and GroupLayout

Postby zps7 » Mon Jan 12, 2009 11:27 am

Our problems have re-occured. Eventually, whyen trying to preview, the swing designer loses track of it's components and we get an error that a component Id cannot be found. Don't know how to proceed. Once this error occurs, then the preview feature stops working on the class.
zps7
 
Posts: 3
Joined: Thu Jan 08, 2009 12:47 pm

Re: Problem with Designer and GroupLayout

Postby Eric Clayberg » Mon Jan 12, 2009 12:18 pm

Send us a test case and your complete Eclipse ".log" file.
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