JDK-4462764 : DefaultFocusManager not recognising cycleroot for "Shift TAB"
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-05-24
  • Updated: 2001-07-10
  • Resolved: 2001-07-10
Related Reports
Duplicate :  
Description

Name: bsC130419			Date: 05/24/2001


java version "1.1.8-JDeveloper"

When using shift TAB with the DefaultFocusManager, and no forward tabbing has
taken place yet, the bug appears. There seems to be no recognition of the cycle
set up by applying the nextFocusableComponent method to the components.

My particular GUI in which the problem was spotted is a JDialog, which contains
a JPanel. The panel in turn contains a JTextField, JTable ( in it's viewport
etc ) , and a futher JPanel (which contains 3 Jbuttons).

On opening the GUI and executing SHIFT TAB's to navigate around the GUI, the
focuscycle set up by the nextFocusableComponent method on each component is
completely ignored. It however works fine if only TAB is used. Once you have
cycled forward through the GUI, the backward cycle works the equivalent number
of times, this seems to be due to the stack set up in the DefaultFocusManager.

This should be pretty easy to replicate, by simply setting up a JDialog of a
similar nature to the one described above.
(Review ID: 124548) 
======================================================================

Comments
WORK AROUND Name: bsC130419 Date: 05/24/2001 The obvious work-a-round is to maintain an ordered list of the focus cycle you require, and simply write your own focus manager to deal with the TAB key actions. ======================================================================
11-06-2004

EVALUATION We don't recommend using the next focus component method anymore. Instead with 1.4 we recommend you create a FocusTraversalPolicy if you need to customize focus traversal. I'm closing this as a dup of the focus bug for merlin as this is the work that resulted in the new focus architecture. scott.violet@eng 2001-07-10
10-07-2001