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

PIT : Wrong focus traversal when mixing of hw & lw of components

    Details

    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      x86
    • OS:
      windows_vista

      Description

      I have a frame, which contains a scrollbar. The scrollbar contains two JPanel , one added to the north of the frame which contains a JButton & the second JPanel added to the sout of the frame which contains a button, choice, list & a checkbox. When the frame is visible , the JButton contains the focus. But when the press the tab key to navigate the focus to the second component, i was assuming that AWT Button will have the focus , but the focus goes to the List which is incorrect. If i remove the list , the focus traversal is correct. I tested it on 6u10 b31 build, & its reproducable there also.

      Step to reproduce :-
      -------------------------
      1) Run the attached program.
      2) Observe that JButton has the focus.
      3) Press tab, if List has the focus , then the bug is reproduced.
      I tested this on 6u12 b01 pit build on windows vista home premium.

        Attachments

          Activity

            People

            • Assignee:
              ant Anton Tarasov
              Reporter:
              lpremkumsunw Lawrence Premkumar1 (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: