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

mouseDragged not invoked for Frames when over children that has MouseListener

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.4.0
    • client-libs
    • None
    • beta
    • x86, sparc
    • generic, solaris_7
    • Verified

      I have attached an example illustrating this. The example consists of a Frame (with a MouseMotionListener and MouseListener attached to it) that contains a single child that has a MouseListener attached to it. Click on the background of the window (not the red region) and drag the mouse around. Notice that 'window dragged' is printed while you drag over the window region, but as soon as you drag over the region of the child Component mouseDragged is no longer invoked.

      I should also add that if you release the mouse over the child Component the Window's MouseListener won't get notified of the mouseRelease.

            son Oleg Sukhodolsky (Inactive)
            svioletsunw Scott Violet (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: