Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4989414

dragExit event not properly triggered

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                agerasimsunw Alexander Gerasimov (Inactive)
                Reporter:
                gramachasunw Girish Ramachandran (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: