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

PIT: Choice triggers MousePressed when pressing mouse outside comp while drop-down is active, XTkt

XMLWordPrintable

    • b45
    • sparc
    • solaris_10
    • Verified

      I am popping up a frame with a Choice. I am clicking the left mouse button on it and the drop-down appears. Keeping the drop-down active, I am clicking the left/right/middle mouse buttons outside the frame and I could see mouse events being triggered by Choice for these buttons. The drop-down disappear.

      When clicking left button, only MousePressed is triggered. When clicking middle and right mouse button, all the mouse events are triggered. Choice should not trigger any mouse events when the mouse is clicked outside the component.

      This is reproducible only on XToolkit with the following PIT build:
      java version "1.6.0-awt.pit-int-awt-blade"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-dm97671_17_May_2005_14_27-b00)
      Java HotSpot(TM) Server VM (build 1.6.0-ea-b36, mixed mode)

      Not reproducible on Motif. Not reproducible on Win32. Not reproducible on Mustang-b36. I reproduced it on SolSparc10-JDS.

      I have attached a sample test. Execute the sample test on XToolkit. Click on Choice. drop-down will appear. CLick either left / right / middle mouse button outside the frame. If you see mouse events on the console, the bug is reproduced.

      ###@###.### 2005-05-19 11:01:25 GMT

            dav Andrei Dmitriev (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: