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 214100 - Drag and drop doesn't work
Summary: Drag and drop doesn't work
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 7.2
Hardware: PC Mac OS X
: P1 normal (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: JDK_SPECIFIC
: 214103 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-06-13 09:26 UTC by ttokoly
Modified: 2017-09-29 08:01 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot (43.79 KB, image/png)
2012-06-18 14:34 UTC, ttokoly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ttokoly 2012-06-13 09:26:48 UTC
Product Version: NetBeans IDE Dev (Build 201206130001)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b04
System: Mac OS X version 10.7.4 running on x86_64; UTF-8; en_US (nb)

Drag and drop doesn't work. You can't reorganize any tabs in window, either you can't move some selected code to another part or move classes between packages etc...

With
Java: 1.7.0_05; Java HotSpot(TM) 64-Bit Server VM 23.1-b03
it works. Much better at least (I can't say it's perfect either...).
Comment 1 Antonin Nebuzelsky 2012-06-13 10:46:51 UTC
Stando, please evaluate ASAP.
Comment 2 Stanislav Aubrecht 2012-06-13 12:50:36 UTC
The first attempt to drag anything (an internal window or a node in Projects/Files window) actually does start. But after a short time the dragging is interrupted for unknown reasons. The drag rectangle representing the dragged object is still being painted on the screen (on top of all windows). Furthermore, the system Dock becomes disabled and does not react to mouse events - it isn't possible to switch to other windows by clicking their Dock icons. Popup menu on the Dock doesn't work either. Switching to other apps with keyboard works fine though. After quitting the application in broken drag mode, the Dock becomes responsive again.
When dragging is interrupted there's still a Thread stuck in CDragSourceContextPeer.doDragging()

I wasn't able to reproduce this problem outside NetBeans.

Note for JDK team - NetBeans implements its d'n'd support using java.awt.dnd classes, we don't use javax.swing.TransferHandler.
Comment 3 Stanislav Aubrecht 2012-06-13 12:52:45 UTC
*** Bug 214103 has been marked as a duplicate of this bug. ***
Comment 4 Antonin Nebuzelsky 2012-06-14 21:16:01 UTC
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7177144
Comment 5 ttokoly 2012-06-18 14:34:19 UTC
Created attachment 120993 [details]
Screen shot
Comment 6 ttokoly 2012-06-18 14:35:39 UTC
Product Version: NetBeans IDE 7.2 RC1 (Build 201206172200)
Java: 1.7.0_06-ea; Java HotSpot(TM) 64-Bit Server VM 23.2-b05
System: Mac OS X version 10.7.4 running on x86_64; UTF-8; en_US (nb)

Still reproducible on JDK7u6 b14, but it's not shows on first attempt of D'n'D.

I've tried reorganize the toolbar bars and in the attachment above you can find result (print screen).
Comment 7 ttokoly 2012-06-18 14:39:21 UTC
And reorganizing (drag and dropping) of toolbar in JDK 7u5 cause IDE to freeze.
Comment 8 pwasson 2016-03-04 17:45:30 UTC
This is still happening in NetBeans 8.1 Patch 1 on JDK 1.8.0_74 on Mac OS X 10.11.3.
Comments on the bugs.sun.com bug referenced in a previous comment say that it's a NetBeans bug. Any chance this could be reopened?
Comment 9 matthew49 2017-05-02 19:48:35 UTC
I can drag and drop tabs fine but not toolbar icons. Looks like I'm stuck with the default toolbar configuration. Frustrating.

Product Version: NetBeans IDE 8.2 (Build 201609300101)
Java: 1.8.0_131; Java HotSpot(TM) 64-Bit Server VM 25.131-b11
Runtime: Java(TM) SE Runtime Environment 1.8.0_131-b11
System: Mac OS X version 10.12.4 running on x86_64; UTF-8; en_US (nb)
Comment 10 matthew49 2017-05-02 19:55:47 UTC
After working with it bit more I discovered that for some reason I am able to drag items out of the toolbar customization window if I scroll them all the way to the top.
Comment 11 skimbu 2017-09-29 08:01:44 UTC
The drag and drop issue related to customizing the toolbar appears to be linked to the boundary box of the main netbeans window.

If the cursor is outside the boundary of the main window when dragging an icon from the customize toolbar window, then it will work. If the two windows overlap and the cursor is within the boundary of the main window when dragging, it will fail to pick up the icon.

HTH