-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
5.0
-
generic
-
generic
DragSourceListener.dragExit() method is not invoked when the mouse dragging is done quickly. ie while dragging, the mouse must be present in the drop site for quite some time for the method to be invoked. Works fine in jdk-1.4.2
How to reproduce:
1. Run the attached code
2. Drag an element from the first JList to the second. Drag the element from a position close to the right end without placing the mouse on the first JList for a long time.
3. The events triggered are printed on the terminal window. It can be seen that the dragExit method is not invoked. Also the dragExit method is implemented to remove the dragged element from the first JList.
4. Drag an element slowly and it can be seen that the dragExit method is getting invoked and as a result, the element getting removed from the JList
The behavior occurs from Tiger b13 onwards. I have tested it on Solaris 9 and Windows 2000. Please see the log file attached to the output log of the testcase. The log file shows two drag and drop actions. First one, when DragExit is not getting called (Events 1-29) and second one when it is getting called (Events 30-105).
How to reproduce:
1. Run the attached code
2. Drag an element from the first JList to the second. Drag the element from a position close to the right end without placing the mouse on the first JList for a long time.
3. The events triggered are printed on the terminal window. It can be seen that the dragExit method is not invoked. Also the dragExit method is implemented to remove the dragged element from the first JList.
4. Drag an element slowly and it can be seen that the dragExit method is getting invoked and as a result, the element getting removed from the JList
The behavior occurs from Tiger b13 onwards. I have tested it on Solaris 9 and Windows 2000. Please see the log file attached to the output log of the testcase. The log file shows two drag and drop actions. First one, when DragExit is not getting called (Events 1-29) and second one when it is getting called (Events 30-105).
- relates to
-
JDK-4874092 dragEnter/dragExit methods of DragSourceListener fire without reaching target
-
- Resolved
-
-
JDK-4449146 mouseDragged event still fired while drag and drop
-
- Closed
-
-
JDK-4819437 DragSourceListener.dragExit() is called unexpectedly
-
- Resolved
-
-
JDK-5043688 DropTargetDragEvent.acceptDrag(int) doesn't work
-
- Closed
-