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

    • b132
    • 8
    • generic

      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

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

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

              Created:
              Updated:
              Resolved: