JDK-4190339 : no dragGestureRecognized with JComboBox
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0,1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic,solaris_2.6
  • CPU: generic
  • Submitted: 1998-11-16
  • Updated: 2001-11-19
  • Resolved: 2001-10-25
Related Reports
Duplicate :  
JComboBox is the DragSource with a DragGestureListener registered. When drag operation is initiated with JComboBox, there is no callback from its DragGestureListener - dragGestureRecognized(), therefore, no startDrag() is kicked off.

The test case in /home/tinasu/AWT/DnDTest/Bugs/JComboBox demonstrates the problem. 
If the dragsource JComboBox is replaced with AWT List, everything works fine.
The problem is seen on the latest jdk (FCS RC2).

EVALUATION This is a problem within Swing JComboBox. It is intercepting the initial mouse event so drag won't work. This should be fixed when DnD is implemented for Swing. I still own it though. roger.brinkley@Eng 2000-01-11 This is a result of a known issue with compound components in Swing. The MouseDragGestureRecognizer adds its listeners to the JComboBox, which is made up of other components. During mouse interaction with the JComboBox, these child components see the mouse events. Since the listeners are added at the JComboBox level, and aren't notified, the recognizer never recognizes a drag. This is really a duplicate of 4144505 which encapsulates many of the issues with compound components and explains why this will not be fixed. Closing as a duplicate. ###@###.### 2001-10-25