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

[macosx] Issue similar to 6399679: dropdown stays open on Choice programmatical resize

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 7u6, 8, 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
    • Environment:

      OS X

      Description

      Fixing an unrelated issue in the test ResizeAutoClosesChoice.java we found that the bug from JDK-6399679 was reproducible on OS X. Technically, it is not a regression since the bug is against Solaris, and it is reproducible in the first Oracle JDK release on Mac.
      Call it as you wish, the same thing is broken on a new platform.

      In addition, you cannot use the test ResizeAutoClosesChoice.java as a regression test for a future fix since it depends on setBackground() seamless work but on OS X that is not guaranteed (you may set background red and getBackround would report red but the color will be not red). A new test will be necessary with the fix.

      To demonstrate the issue, run the attached TryChoice.java. The choice will be resized, packed, validated on mouse click but the dropdown will stay open and be narrow.
      If you consider that code snippet imperfect, you may also modify ResizeAutoClosesChoice.java to see that effect on the screen without messing with listeners.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            yan Yuri Nesterenko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: