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 256145 - Holding Shift key to add multiple components to a GUI Form is not working
Summary: Holding Shift key to add multiple components to a GUI Form is not working
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 256940 257428 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-10-23 21:59 UTC by mclaborn
Modified: 2016-02-01 14:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2015-10-23 21:59:14 UTC
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
Comment 1 Jiri Prox 2015-11-06 14:13:23 UTC
reproducible
Comment 2 Tomas Pavek 2015-11-06 17:49:32 UTC
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.
Comment 3 Quality Engineering 2015-11-07 02:57:40 UTC
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
Comment 4 Jiri Prox 2015-12-03 09:08:05 UTC
*** Bug 256940 has been marked as a duplicate of this bug. ***
Comment 5 Tomas Pavek 2016-01-06 09:49:03 UTC
*** Bug 257428 has been marked as a duplicate of this bug. ***
Comment 6 Jiri Prox 2016-01-13 12:24:08 UTC
verified in trunk
Comment 7 Tomas Pavek 2016-01-13 13:39:19 UTC
Transplanted to release81 as 91d2692c0ce8 and 829b0f144b73.