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 - IllegalArgumentException: Cannot add a component into a group twice!
Summary: IllegalArgumentException: Cannot add a component into a group twice!
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks: 136425
  Show dependency tree
 
Reported: 2010-08-18 19:11 UTC by samaury
Modified: 2011-10-05 09:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 172018


Attachments
stacktrace (2.52 KB, text/plain)
2010-08-18 19:11 UTC, samaury
Details
test case (13.30 KB, application/octet-stream)
2010-08-20 11:36 UTC, Tomas Pavek
Details

Note You need to log in before you can comment on or make changes to this bug.
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)