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
by baryiames » Fri Apr 01, 2005 6:43 am
I'm evaling the Swing Designer - very good stuff! The one bit that I haven't been able to work through is an error with the JGoodies formlayout. Dragging it onto a panel gives me a slew of exceptions, I'll post the first. I downloaded the latest eval kit (3.0.1 / Build 2005.03.30).
Thanks for the help -
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.eclipse.jdt.core.dom.DesignerAST.parseExpression(DesignerAST.java:192)
at com.swtdesigner.model.util.ast.ASTEditor.replaceExpression(ASTEditor.java:1676)
at com.swtdesigner.model.util.ast.ASTEditor.replaceExpression(ASTEditor.java:1648)
at com.swtdesigner.model.JavaInfo.replaceMethodInvocationCode(JavaInfo.java:1576)
at com.swtdesigner.model.JavaInfo.replaceMethodInvocation(JavaInfo.java:1556)
at com.swtdesigner.model.JavaInfo.removeInvocationArgument(JavaInfo.java:1487)
at com.swtdesigner.model.swing.layouts.managers.ConstraintsExpressionAccessor.deleteExpression(ConstraintsExpressionAccessor.java:92)
at com.swtdesigner.model.swing.layouts.managers.LayoutManagerInfo.removeChildConstraints(LayoutManagerInfo.java:162)
at com.swtdesigner.model.swing.layouts.managers.LayoutManagerInfo.childDeleteStarted(LayoutManagerInfo.java:204)
at com.swtdesigner.model.swing.layouts.managers.gridbag.GridBagLayoutInfo.childDeleteStarted(GridBagLayoutInfo.java:283)
at com.swtdesigner.model.swing.component.ContainerBeanInfo.childDeleteStarted(ContainerBeanInfo.java:778)
at com.swtdesigner.model.JavaInfo.deleteFromParent(JavaInfo.java:2742)
at com.swtdesigner.model.swing.JavaBeanInfo.deleteFromParent(JavaBeanInfo.java:755)
at com.swtdesigner.gef.actions.CutAction.processSelectedInfos(CutAction.java:51)
at com.swtdesigner.gef.actions.CopyToClipboardAction.run(CopyToClipboardAction.java:67)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:1003)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:557)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:507)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:421)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:842)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2908)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2541)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)
-
baryiames
-
- Posts: 3
- Joined: Fri Apr 01, 2005 6:33 am
by baryiames » Fri Apr 01, 2005 8:30 am
Hi,
I have a much more reasonable trace out of my Linux system. This is the trace that occurs when I select froms layout and drag it to a JPanel when running on Linux:
Java Model Exception: Java Model Status [Operation requires a path]
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:757)
at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2739)
at org.eclipse.jdt.internal.core.JavaProject.setRawClasspath(JavaProject.java:2711)
at com.swtdesigner.model.util.jdt.ProjectUtilities.setClasspath(ProjectUtilities.java:198)
at com.swtdesigner.model.util.jdt.ProjectUtilities.addClassPathJar(ProjectUtilities.java:191)
at com.swtdesigner.model.swing.jgoodies.layout.FormLayoutInfo.setLayout(FormLayoutInfo.java:268)
at com.swtdesigner.gef.command.swing.layout.SetLayoutCommand.execute(SetLayoutCommand.java:21)
at org.eclipse.gef.commands.CommandStack.execute(CommandStack.java:78)
at com.swtdesigner.gef.DesignerEditDomain$1.execute(DesignerEditDomain.java:36)
at org.eclipse.gef.tools.AbstractTool.executeCurrentCommand(AbstractTool.java:416)
at org.eclipse.gef.tools.CreationTool.performCreation(CreationTool.java:198)
at org.eclipse.gef.tools.CreationTool.handleButtonUp(CreationTool.java:122)
at org.eclipse.gef.tools.AbstractTool.mouseUp(AbstractTool.java:1006)
at org.eclipse.gef.EditDomain.mouseUp(EditDomain.java:232)
at com.swtdesigner.gef.DesignerEditDomain.mouseUp(DesignerEditDomain.java:217)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchMouseReleased(DomainEventDispatcher.java:346)
at org.eclipse.draw2d.LightweightSystem$EventHandler.mouseUp(LightweightSystem.java:511)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:136)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1009)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2728)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2427)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1612)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1578)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:293)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:144)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:102)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:333)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:150)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:268)
at org.eclipse.core.launcher.Main.basicRun(Main.java:260)
at org.eclipse.core.launcher.Main.run(Main.java:887)
at org.eclipse.core.launcher.Main.main(Main.java:871)
-
baryiames
-
- Posts: 3
- Joined: Fri Apr 01, 2005 6:33 am
by Eric Clayberg » Fri Apr 01, 2005 2:56 pm
baryiames wrote:I'm evaling the Swing Designer - very good stuff! The one bit that I haven't been able to work through is an error with the JGoodies formlayout. Dragging it onto a panel gives me a slew of exceptions, I'll post the first.
Actually, it would be more helpful if you could send us your entire ".log" file.
The trace from your Linux system is unrelated to the first trace you posted. It indicates a problem adding the JGoodies FormLayout jar file to your project. You might try adding jar file to your project manually.
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
by baryiames » Mon Apr 04, 2005 4:51 am
A rookie mistake..... Purely a classpath issue.... Adding the forms jar file to the project's classpath clears all the errors.
-
baryiames
-
- Posts: 3
- Joined: Fri Apr 01, 2005 6:33 am
by Eric Clayberg » Tue Apr 05, 2005 8:21 pm
baryiames wrote:A rookie mistake..... Purely a classpath issue.... Adding the forms jar file to the project's classpath clears all the errors.
BTW, our JGoodies FormLayout support has been formally released in v4.0.0.
-
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