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 189651

Summary: IllegalArgumentException: Cannot add a component into a group twice!
Product: guibuilder Reporter: samaury <samaury>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: normal CC: samaury
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 172018
Bug Depends on:    
Bug Blocks: 136425    
Attachments: stacktrace
test case

Description samaury 2010-08-18 19:11:18 UTC
Build: NetBeans IDE 6.9 (Build 201007282301)
VM: Java HotSpot(TM) Client VM, 16.3-b01, Java(TM) SE Runtime Environment, 1.6.0_20-b02
OS: Linux

Stacktrace: 
java.lang.IllegalArgumentException: Cannot add a component into a group twice!
   at org.netbeans.modules.form.layoutdesign.LayoutInterval.add(LayoutInterval.java:455)
   at org.netbeans.modules.form.layoutdesign.LayoutModel.addInterval(LayoutModel.java:324)
   at org.netbeans.modules.form.layoutdesign.LayoutOperations.optimizeGaps(LayoutOperations.java:1037)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.addInterval(LayoutFeeder.java:795)
   at org.netbeans.modules.form.layoutdesign.LayoutFeeder.add(LayoutFeeder.java:314)
   at org.netbeans.modules.form.layoutdesign.LayoutDesigner.addComponents(LayoutDesigner.java:828)
Comment 1 samaury 2010-08-18 19:11:22 UTC
Created attachment 101500 [details]
stacktrace
Comment 2 Tomas Pavek 2010-08-19 11:30:57 UTC
Will try to fix, but would be great if you could provide a sample form and exact steps to reproduce - only then the fix can be properly verified. Thanks.
Comment 3 Tomas Pavek 2010-08-20 11:36:47 UTC
Created attachment 101563 [details]
test case

Here is the test case from the reporter. Open the form (ignore errors) and try to resize jTextField1 by its right edge.
Comment 4 asenk 2011-10-05 09:30:18 UTC
Fixed in 7.1 - Free Design improvements
Comment 5 asenk 2011-10-05 09:30:36 UTC
Product Version: NetBeans IDE Dev (Build 201110040601)
Java: 1.7.0; Java HotSpot(TM) Client VM 21.0-b17
System: Linux version 2.6.38-11-generic running on i386; UTF-8; en_US (nb)