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.
This bug was originally marked as duplicate of bug 159079, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 201109202329) VM: Java HotSpot(TM) Client VM, 21.0-b17, Java(TM) SE Runtime Environment, 1.7.0-b147 OS: Windows 7 User Comments: javydreamercsw: Dragging a button from the palette. claus_ch: I have a simple maven-based test project having a JFrame and a TextArea (everything default). The crash happened, while draging a ComboBox onto a blank spot of the JPanel in Mantisse. asenk: I made a lot of steps before this exception. Posible steps to reproduce: Create new J2SE project and crete new JFrame Form --Drag a Radio Button from pallete to JFrame Form Stacktrace: java.lang.AssertionError at org.netbeans.modules.form.layoutdesign.LayoutDesigner.endMoving(LayoutDesigner.java:1119) at org.netbeans.modules.form.HandleLayer$NewComponentDrag.end(HandleLayer.java:3159) at org.netbeans.modules.form.HandleLayer$NewComponentDropListener.drop(HandleLayer.java:3356) at java.awt.dnd.DropTarget.drop(DropTarget.java:450) at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:537) at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:851)
Created attachment 110995 [details] stacktrace
Cannot reproduce, but I think this can happen when the last mouse move event comes from the white area around the form but then the mouse pressed event is already in the area of the form. You move mouse too quickly! ;)
Fixed. http://hg.netbeans.org/jet-main/rev/0c1fdf436eb2
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/0c1fdf436eb2 User: Tomas Pavek <tpavek@netbeans.org> Log: #202458: prevent dropping into a different target container than was the last mouse move operation