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

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

XMLWordPrintable

    • Cause Known
    • x86
    • windows_vista

      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.

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

              Created:
              Updated:
              Imported:
              Indexed: