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

regresssion: Content of the choice is not seen(first item), when the modal dialog is visible

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      I have a frame, which contains a Textfield & a choice. I have added focus listener to the textfield. When there is a focus lost from the textfield , i am displaying a modal dialog. When the frame is visible , i can see the first item in the choice. but when the modal dialog is visible, i can't see the first item of the choice. This works fine in jdk6.0 but fails from jdk7.0 b02 onwards. Hence this is a regression. This is seen only in window xp.
      The attached program is a automatic. It can be worked manually also.
      First run the code it will be automatic, then later the program can be tried manually also to reproduce the bug.

      Step to reproduce;
      ------------------
      1) Run the attached program.
      2) Observe that when the frame is visible, you can see the first item in the frame. You can see the screen shot in file which gets created in the same folder.
      3) Once the dialog is visible . Observe the first item of the choice is erased. After some time the dialog gets disposed. but the first item in the choice is selected(blank).
      4) Click on the choice to view the contents of the choice. You can see all the items( but not the blank one).
      5) Press down arrow & select any item in the choice.
      6) Click on the textfield( so that textfield get the focus).
      7) Click on the arrow button of the choice. Observe that item in the choice is not visible. but the item is selected(blank) . If you see the same,then the bug is reproduced.

        Attachments

          Activity

            People

            Assignee:
            dav Andrei Dmitriev (Inactive)
            Reporter:
            lpremkumsunw Lawrence Premkumar1 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: