This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 69497 - IllegalStateException in the Matisse editor while moving components around within a panel
Summary: IllegalStateException in the Matisse editor while moving components around wi...
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-28 21:42 UTC by kcr
Modified: 2005-12-02 17:48 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Test program (13.48 KB, application/x-compressed)
2005-11-28 21:43 UTC, kcr
Details
Log file (19.11 KB, text/plain)
2005-11-28 21:44 UTC, kcr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kcr 2005-11-28 21:42:53 UTC
I am seeing an IllegalStateException in the Matisse editor while moving
components around within a panel. I am running 5.0-beta2.

The attached test program will reproduce this bug:

1) Open the "ytm" project

2) Edit the file "BondCalculator.java"

3) In the Matisse editor, select and drag the "Call Date" label to the left and
slightly up, directly underneath the "Coupon" label, so that the left edges of
the two labels are lined up.

When you release the mouse button, the following exception will be thrown and
the move operation will fail (the complete logfile is attached):

java.lang.IllegalStateException:
javax.swing.JLabel[,27,101,62x15,invalid,alignmentX=0.0,alignmentY=0.0,border=,flags=8388608,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,horizontalAlignment=LEADING,horizontalTextPosition=TRAILING,iconTextGap=4,labelFor=,text=Call
Date,verticalAlignment=CENTER,verticalTextPosition=CENTER] is not attached to a
vertical group
	at org.jdesktop.layout.GroupLayout.checkComponents(GroupLayout.java:836)
	at org.jdesktop.layout.GroupLayout.prepare(GroupLayout.java:814)
	at org.jdesktop.layout.GroupLayout.layoutContainer(GroupLayout.java:668)
	at
org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder.createLayout(SwingLayoutBuilder.java:128)
	at
org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder.setupContainerLayout(SwingLayoutBuilder.java:73)
	at
org.netbeans.modules.form.VisualReplicator.setupContainerLayout(VisualReplicator.java:713)
	at
org.netbeans.modules.form.VisualReplicator.updateContainerLayout(VisualReplicator.java:264)
	at
org.netbeans.modules.form.FormDesigner$LayoutMapper.rebuildLayout(FormDesigner.java:1705)
	at
org.netbeans.modules.form.layoutdesign.LayoutDesigner.updateCurrentState(LayoutDesigner.java:87)
	at
org.netbeans.modules.form.FormDesigner.updateComponentLayer(FormDesigner.java:405)
	at org.netbeans.modules.form.FormDesigner.access$1700(FormDesigner.java:62)
	at org.netbeans.modules.form.FormDesigner$FormListener.run(FormDesigner.java:1947)
	at
org.netbeans.modules.form.FormDesigner$FormListener.processEvents(FormDesigner.java:1810)
	at
org.netbeans.modules.form.FormDesigner$FormListener.formChanged(FormDesigner.java:1778)
	at org.netbeans.modules.form.FormModel.fireEvents(FormModel.java:981)
[catch] at org.netbeans.modules.form.FormModel$EventBroker.run(FormModel.java:1081)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 kcr 2005-11-28 21:43:23 UTC
Created attachment 27362 [details]
Test program
Comment 2 kcr 2005-11-28 21:44:41 UTC
Created attachment 27363 [details]
Log file
Comment 3 Marek Grummich 2005-11-29 08:22:04 UTC
Reproducible in the build 200511281900!
Comment 4 Tomas Pavek 2005-11-29 11:39:00 UTC
Fixed.

/cvs/form/src/org/netbeans/modules/form/layoutdesign/LayoutFeeder.java
new revision: 1.49; previous revision: 1.48
Comment 5 Marek Grummich 2005-11-30 09:24:06 UTC
Seem to be fixed for a mentioned test case in the build 200511291900. Please,
confirm and change issue status to verified. Thanks!
Comment 6 kcr 2005-12-02 17:48:24 UTC
I verified that this bug is fixed in build 200512011936.