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

Choice triggers ItemEvent when selecting an item with right mouse button, Xtoolkit

XMLWordPrintable

    • b33
    • sparc
    • solaris_9
    • Verified

      I am showing a frame with a button and a choice. When I click on the choice using left mouse button, the drop-down appears. Once the drop-down is shown, I am clicking on one of the items using middle / right mouse button. The drop-down disappears and an ItemEvent is triggered for the already selected item (not the item that I selected with right button). This is incorrect. ItemEvent should not be triggered when the user does not select anything or selects something with a right/middle mouse button.

      This is reproducible only on XToolkit, since Tiger. Not reproducible on Motif or Win32. On Win32, nothing happens when clicking the right button. On Motif, the drop-down disappears but no item event is triggered. Reproducible on Mustang-b26.

      I have attached a sample test. Execute the sample test. You would see a choice on a frame. Click on the choice using left button. A drop-down will appear. Click on any of the items using middle/right mouse button. If see an ItemEvent on the console, the bug is reproduced. I tested this on Solaris9-GNOME.
      ###@###.### 2005-03-13 17:11:56 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: