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

Lightweight components: Enter/Exit mouse events incorrectly reported during drag

    Details

    • Subcomponent:
    • Resolved In Build:
      b01
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Backports

        Description

        The code in java.awt.container that redirects mouse events to
        lightweight components does not give correct exit/enter
        events when the mouse button enters or exits the component
        during dragging.

        This can easily be demonstrated by simply logging all events to
        a lightweight component.

        Instead of giving Enter/Exit events at the lightweight
        component's boundary it generates them at the parent native
        component's boundary.

        The dragging case code needs to check whether the mouse is
        inside the component and generate the appropriate events.
        The Enter/Exit code also needs to suppress the spurious events.

        When not dragging the events work fine as the code changes
        the redirection target and sends the appropriate events. This
        does not occur while dragging as the redirection target does
        not change.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  rkhansunw Robi Khan (Inactive)
                  Reporter:
                  tprinzinsunw Timothy Prinzing (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: