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 59768

Summary: IllegalArgumentException thrown when doing undo after cut&paste
Product: guibuilder Reporter: Jiri Prox <jiriprox>
Component: CodeAssignee: issues@guibuilder <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Exception

Description Jiri Prox 2005-06-09 09:00:44 UTC
NB 4.1 (200505031930)
JDK 1.5.0_03

IAE thrown when cut and paste 3 buttons out of the subpanel to main panel and
then pressing undo

steps:
1) crate new jFrame with FlowLayout
2) add JPanel
3) to the JPanel add 3 JButtons
4) select all buttons
5) press ctrl-x
6) click on the main frame (to get focus)
7) press ctrl-v
-> the button are cut&pasted to the main container
8) press undo

-> IAE thrown:
java.lang.IllegalArgumentException: illegal component position
	at java.awt.Container.addImpl(Container.java:999)
	at java.awt.Container.add(Container.java:390)
	at
org.netbeans.modules.form.layoutsupport.AbstractLayoutSupport.addComponentsToContainer(AbstractLayoutSupport.java:544)
Comment 1 Jiri Prox 2005-06-09 09:01:34 UTC
Created attachment 22568 [details]
Exception
Comment 2 Jan Stola 2005-08-25 15:43:24 UTC
The exception is not thrown in the latest builds => marking as fixed.
Comment 3 Jiri Prox 2005-10-25 17:09:19 UTC
verified