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

Choice item can't be selected using keyboard when choice is placed inside JScrollPane

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_vista

      Description

      I have JFrame which contains a JScrollPane. The JScrollPane contains two jpanel, first jpanel is added to the north of the JFrame which contains a swing button. Second jpanel is added to the south of the jframe which contains a AWT button & a AWT Choice. When the frame is visible. I press "tab" key to navigate across the component. When the focus comes to the choice. I Press "ALT" + "Down arrow" so the choice's popup can be seen. When choice's popup is visible, i try to select the item using keyboard, but the selection of the item is not changing it stay to the first item.


      Step to reproduce :-
      ----------------------
      1) Run the attached program.
      2) press "Tab" key to navigate the across components, when the focus reaches the choice. Press "ALT" + "Down arrow".
      3) You will see the choice's popup menu.
      4) Try pressing "Down arrow", so that you can select the items of the choice. If yo can't select the any item , then the bug is reproduced.

      I tested this on windows vista home premium with 6u12 bo01 pit build.
      The issue exists in jdk6.0, latest 6u10 as well so it's not a regression.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              lpremkumsunw Lawrence Premkumar1 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Imported:
                Indexed: