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.
Product Version = NetBeans IDE 8.1 RC2 (Build 201510122201) Operating System = Linux version 3.13.0-66-generic running on amd64 Java; VM; Vendor = 1.8.0_51 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.51-b03 Reproducibility: Happens every time Holding the shift key while dropping a component on a GUI form from the Palette is supposed to allow you to add more than one in succession. This is not working in 8.1 RC2. 1. Create a new JPanel form 2. Open the Palette view 3. Click the Button component 4. Drag to the GUI form 5. Hold Shift key and click to place the button 6. While continuing to hold shift, move the mouse to the right. Expected: It should have the outline of a Button that can be dropped on the form again. Actual: Does not
reproducible
There's even a NPE thrown. java.lang.NullPointerException at org.netbeans.modules.form.HandleLayer$NewComponentDrag.init(HandleLayer.java:3387) at org.netbeans.modules.form.HandleLayer$ComponentDrag$1.run(HandleLayer.java:2780) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) This was caused by a really amateurish change made at the last moments of 8.1 release (best time to do stupid things): http://hg.netbeans.org/jet-main/rev/e73a7a30219c. Hopefully fixed now: http://hg.netbeans.org/jet-main/rev/f68312adba34 This is a really embarrassing bug, nominating for the 8.1 patch.
Integrated into 'main-silver', will be available in build *201511070002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/f68312adba34 User: Tomas Pavek <tpavek@netbeans.org> Log: #256145: making shift-adding working again
*** Bug 256940 has been marked as a duplicate of this bug. ***
*** Bug 257428 has been marked as a duplicate of this bug. ***
verified in trunk
Transplanted to release81 as 91d2692c0ce8 and 829b0f144b73.