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 - IllegalArgumentException thrown when doing undo after cut&paste
Summary: IllegalArgumentException thrown when doing undo after cut&paste
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-09 09:00 UTC by Jiri Prox
Modified: 2006-03-24 12:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (1.85 KB, text/plain)
2005-06-09 09:01 UTC, Jiri Prox
Details

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