-
Bug
-
Resolution: Duplicate
-
P2
-
None
-
1.4.0
-
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".
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".
- duplicates
-
JDK-4394789 KeyboardFocusManager.upFocusCycle is not working for Swing properly
-
- Closed
-