| Summary: | Error Creating a Jpanel trying to draw it directly on the container with mouse | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Alessio Pollero <alessio.pollero> | ||||
| Component: | WindowBuilder | Assignee: | Alexander Mitin <Alexander.Mitin> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | alessio.pollero, clayberg | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows 7 | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Alessio Pollero
Created attachment 205301 [details]
WindowBuilder log report
This is the generated bug report of WindowBuilderPro.
!MESSAGE Designer [1.1.0.r37x201109091012.201110171007]: javax.swing.JTabbedPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=201326944,maximumSize=,minimumSize=,preferredSize=,haveRegistered=false,tabPlacement=TOP] is not attached to a horizontal group !STACK 0 java.lang.IllegalStateException: javax.swing.JTabbedPane[,0,0,0x0,invalid,layout=javax.swing.plaf.basic.BasicTabbedPaneUI$TabbedPaneLayout,alignmentX=0.0,alignmentY=0.0,border=,flags=201326944,maximumSize=,minimumSize=,preferredSize=,haveRegistered=false,tabPlacement=TOP] is not attached to a horizontal group at javax.swing.GroupLayout.checkComponents(Unknown Source) at javax.swing.GroupLayout.prepare(Unknown Source) at javax.swing.GroupLayout.layoutContainer(Unknown Source) at java.awt.Container.layout(Unknown Source) at java.awt.Container.doLayout(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validateTree(Unknown Source) at java.awt.Container.validate(Unknown Source) at org.eclipse.wb.internal.swing.model.component.top.WindowTopBoundsSupport.apply(WindowTopBoundsSupport.java:67) at org.eclipse.wb.core.model.AbstractComponentInfo.refresh_afterCreate(AbstractComponentInfo.java:241) at org.eclipse.wb.core.model.ObjectInfo.refreshCreate0(ObjectInfo.java:552) at org.eclipse.wb.core.model.ObjectInfo.access$0(ObjectInfo.java:546) at org.eclipse.wb.core.model.ObjectInfo$5$1.run(ObjectInfo.java:486) at org.eclipse.wb.internal.core.utils.execution.ExecutionUtils.runDesignTime(ExecutionUtils.java:139) at org.eclipse.wb.core.model.ObjectInfo$5.run(ObjectInfo.java:484) at org.eclipse.wb.internal.swing.utils.SwingUtils$2.run(SwingUtils.java:76) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$000(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) This line is invalid: addComponent(panel, GroupLayout.PREFERRED_SIZE, -41, GroupLayout.PREFERRED_SIZE) Preferred size can not be negative, so GroupLayout fails to create groups and WB can not parse it too. Put some positive value here. |