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

[TESTBUG] java.awt.Choice does not catch mouse press events when it is dropdowned

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b132
    • Introduced In Version:
      8
    • CPU:
      generic

      Description

      When we click mouse button 1 on Choice components menu items appears.
      No other mouse event is catched with the component until in menu is closed.
      Bug is reproducible on Windows and Mac.

      Run attached ChoiceTest.java to reproduce the bug

      Output for different platforms:
      Windows 7:
      Button 1 pressed
      Button 1 released
      Button 1 released

      OS X 10.9:
      Button 1 pressed
      Button 1 released
      Button 3 pressed
      Button 3 released
      Button 1 pressed
      Button 1 released

      Ubuntu Linux 12.04:
      Button 1 pressed
      Button 1 released
      Button 2 pressed
      Button 2 released
      Button 3 pressed
      Button 3 released
      Button 1 pressed
      Button 1 released

      It can be reproduced manually by removing System.exit(0) in ChoiceTest.java

        Attachments

        1. 8037369.zip
          26 kB
        2. 8037369.zip
          26 kB
        3. ChoiceTest.java
          2 kB

          Issue Links

            Activity

              People

              Assignee:
              avstepan Alexander Stepanov
              Reporter:
              dermashov Dmitriy Ermashov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: