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

PIT: Choice scrolls when dragging the parent frame while drop-down is active, XToolkit

XMLWordPrintable

    • b38
    • sparc
    • solaris_9
    • Verified

      I have a frame with a Choice. I am clicking on the choice and drop-down menu appears. Keeping the drop-down active, I am pressing the mouse on the title bar of the frame and dragging it. I expect the drop-down to disappear and the frame must move. But in this case, the drop-down is still shown on the screen and the items in the drop-down scroll when I drag the mouse. This is incorrect. Choice should not respond to mouse drag events when they don't originate from the component. This happens even when you drag the mouse anywhere on the screen when the drop-down is shown.

      This is reproducible only on XToolkit. Not reproducible with Motif and Win32. This is a PIT failure. Not reproducible on Mustang-b32. I reproduced it on SolarisSparc9-CDE. Here is the 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_19_apr_2005_08_10)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b32, mixed mode)

      I have attached a sample test. Execute the sample test. You would see a frame with a Choice. Click on the choice. Drop-down will appear. Make sure last item in the choice is selected. Make sure drop-down is visible. Now click the mouse on the title bar of the frame and drag it. If you see items in the Choice scrolling, the bug is reproduced.
      ###@###.### 2005-04-21 12:36:47 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: