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

setDefaultFocusTraversalKeys method is not working for up cycle traversal

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.0
    • client-libs
    • generic
    • generic

      Method setDefaultFocusTraversalKeys of KeyboardFocusManager API is not working for up cycle traversal in case of swing i.e. there is no focus traversal at all on pressing the key which is set as UP_CYCLE_TRAVERSAL_KEYS. Everything is working fine fro AWT, LW & HW components. Even for swing the down cycle traversal is working fine i.e. on pressing the key which is set as DOWN_CYCLE_TRAVERSAL_KEYS,one can notice the down cycle traversal. To add it's failing on all the platforms.
      How to reproduce the bug:
      There are two files attached one for AWT(FocusCycleUpAWT.java) & the other for swing (FocusCycleUpSwing.java). Run the AWT file & you will find the current focus owner(panel) displayed on your screen. On pressing key "U" on your keyboard u'll notice the change in focus owner from panel to frame(up cycle traversal) but this won't happen when you repeat the same for swing file i.e there won't be any focus traversal at all after pressing "U".

            son Oleg Sukhodolsky (Inactive)
            jijising Jitender Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: