APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing

pack-priv final Class DelegatingDefaultFocusManager

extends DefaultFocusManager
Class Inheritance
Imports
java.awt.*, java.awt.event.*, java.beans.*, java.util.Set

Provides a javax.swing.DefaultFocusManager view onto an arbitrary java.awt.KeyboardFocusManager. We subclass DefaultFocusManager instead of FocusManager because it seems more backward-compatible. It is likely that some pre-1.4 code assumes that the object returned by FocusManager.getCurrentManager is an instance of DefaultFocusManager unless set explicitly.

Field Summary

Modifier and TypeField and Description
private final KeyboardFocusManager
Inherited from javax.swing.DefaultFocusManager:
gluePolicy

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
addKeyEventDispatcher(KeyEventDispatcher dispatcher)

Overrides java.awt.KeyboardFocusManager.addKeyEventDispatcher.

Adds a KeyEventDispatcher to this KeyboardFocusManager's dispatcher chain.

public void
addPropertyChangeListener(PropertyChangeListener listener)

Overrides java.awt.KeyboardFocusManager.addPropertyChangeListener.

Adds a PropertyChangeListener to the listener list.

public void
addPropertyChangeListener(String propertyName, PropertyChangeListener listener)

Overrides java.awt.KeyboardFocusManager.addPropertyChangeListener.

Adds a PropertyChangeListener to the listener list for a specific property.

public void
addVetoableChangeListener(VetoableChangeListener listener)

Overrides java.awt.KeyboardFocusManager.addVetoableChangeListener.

Adds a VetoableChangeListener to the listener list.

public void
addVetoableChangeListener(String propertyName, VetoableChangeListener listener)

Overrides java.awt.KeyboardFocusManager.addVetoableChangeListener.

Adds a VetoableChangeListener to the listener list for a specific property.

public void
clearGlobalFocusOwner()

Overrides java.awt.KeyboardFocusManager.clearGlobalFocusOwner.

Clears the global focus owner at both the Java and native levels.

public boolean
dispatchEvent(AWTEvent e)

Overrides java.awt.DefaultKeyboardFocusManager.dispatchEvent.

This method is called by the AWT event dispatcher requesting that the current KeyboardFocusManager dispatch the specified event on its behalf.

public boolean
dispatchKeyEvent(KeyEvent e)

Overrides java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent.

Implements java.awt.KeyEventDispatcher.dispatchKeyEvent.

Called by dispatchEvent if no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered.

public void
downFocusCycle(Container aContainer)

Overrides java.awt.DefaultKeyboardFocusManager.downFocusCycle.

Moves the focus down one focus traversal cycle.

public void
focusNextComponent(Component aComponent)

Overrides java.awt.DefaultKeyboardFocusManager.focusNextComponent.

Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.

public void
focusPreviousComponent(Component aComponent)

Overrides java.awt.DefaultKeyboardFocusManager.focusPreviousComponent.

Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.

public Window
getActiveWindow()

Overrides java.awt.KeyboardFocusManager.getActiveWindow.

Returns the active Window.

public Container
getCurrentFocusCycleRoot()

Overrides java.awt.KeyboardFocusManager.getCurrentFocusCycleRoot.

Returns the current focus cycle root, if the current focus cycle root is in the same context as the calling thread.

public Set<AWTKeyStroke>
getDefaultFocusTraversalKeys(int id)

Overrides java.awt.KeyboardFocusManager.getDefaultFocusTraversalKeys.

Returns a Set of default focus traversal keys for a given traversal operation.

public FocusTraversalPolicy
pack-priv KeyboardFocusManager
public Window
getFocusedWindow()

Overrides java.awt.KeyboardFocusManager.getFocusedWindow.

Returns the focused Window.

public Component
getFocusOwner()

Overrides java.awt.KeyboardFocusManager.getFocusOwner.

Returns the focus owner, if the focus owner is in the same context as the calling thread.

public Component
public void
processKeyEvent(Component focusedComponent, KeyEvent e)

Overrides java.awt.DefaultKeyboardFocusManager.processKeyEvent.

This method initiates a focus traversal operation if and only if the KeyEvent represents a focus traversal key for the specified focusedComponent.

public void
removeKeyEventDispatcher(KeyEventDispatcher dispatcher)

Overrides java.awt.KeyboardFocusManager.removeKeyEventDispatcher.

Removes a KeyEventDispatcher which was previously added to this KeyboardFocusManager's dispatcher chain.

public void
removePropertyChangeListener(PropertyChangeListener listener)

Overrides java.awt.KeyboardFocusManager.removePropertyChangeListener.

Removes a PropertyChangeListener from the listener list.

public void
removePropertyChangeListener(String propertyName, PropertyChangeListener listener)

Overrides java.awt.KeyboardFocusManager.removePropertyChangeListener.

Removes a PropertyChangeListener from the listener list for a specific property.

public void
removeVetoableChangeListener(VetoableChangeListener listener)

Overrides java.awt.KeyboardFocusManager.removeVetoableChangeListener.

Removes a VetoableChangeListener from the listener list.

public void
removeVetoableChangeListener(String propertyName, VetoableChangeListener listener)

Overrides java.awt.KeyboardFocusManager.removeVetoableChangeListener.

Removes a VetoableChangeListener from the listener list for a specific property.

public void
setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)

Overrides java.awt.KeyboardFocusManager.setDefaultFocusTraversalKeys.

Sets the default focus traversal keys for a given traversal operation.

public void
public void
setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)

Overrides java.awt.KeyboardFocusManager.setGlobalCurrentFocusCycleRoot.

Sets the current focus cycle root.

public void
upFocusCycle(Component aComponent)

Overrides java.awt.DefaultKeyboardFocusManager.upFocusCycle.

Moves the focus up one focus traversal cycle.

Inherited from javax.swing.DefaultFocusManager:
compareTabOrdergetComponentAftergetComponentBeforegetFirstComponentgetLastComponent

Field Detail

delegateback to summary
private final KeyboardFocusManager delegate

Constructor Detail

DelegatingDefaultFocusManagerback to summary
pack-priv DelegatingDefaultFocusManager(KeyboardFocusManager delegate)

Method Detail

addKeyEventDispatcherback to summary
public void addKeyEventDispatcher(KeyEventDispatcher dispatcher)

Overrides java.awt.KeyboardFocusManager.addKeyEventDispatcher.

Doc from java.awt.KeyboardFocusManager.addKeyEventDispatcher.

Adds a KeyEventDispatcher to this KeyboardFocusManager's dispatcher chain. This KeyboardFocusManager will request that each KeyEventDispatcher dispatch KeyEvents generated by the user before finally dispatching the KeyEvent itself. KeyEventDispatchers will be notified in the order in which they were added. Notifications will halt as soon as one KeyEventDispatcher returns true from its dispatchKeyEvent method. There is no limit to the total number of KeyEventDispatchers which can be added, nor to the number of times which a particular KeyEventDispatcher instance can be added.

If a null dispatcher is specified, no action is taken and no exception is thrown.

In a multithreaded application, KeyEventDispatcher behaves the same as other AWT listeners. See AWT Threading Issues for more details.

addPropertyChangeListenerback to summary
public void addPropertyChangeListener(PropertyChangeListener listener)

Overrides java.awt.KeyboardFocusManager.addPropertyChangeListener.

Doc from java.awt.KeyboardFocusManager.addPropertyChangeListener.

Adds a PropertyChangeListener to the listener list. The listener is registered for all bound properties of this class, including the following:

  • whether the KeyboardFocusManager is currently managing focus for this application ("managingFocus")
  • the focus owner ("focusOwner")
  • the permanent focus owner ("permanentFocusOwner")
  • the focused Window ("focusedWindow")
  • the active Window ("activeWindow")
  • the default focus traversal policy ("defaultFocusTraversalPolicy")
  • the Set of default FORWARD_TRAVERSAL_KEYS ("forwardDefaultFocusTraversalKeys")
  • the Set of default BACKWARD_TRAVERSAL_KEYS ("backwardDefaultFocusTraversalKeys")
  • the Set of default UP_CYCLE_TRAVERSAL_KEYS ("upCycleDefaultFocusTraversalKeys")
  • the Set of default DOWN_CYCLE_TRAVERSAL_KEYS ("downCycleDefaultFocusTraversalKeys")
  • the current focus cycle root ("currentFocusCycleRoot")
If listener is null, no exception is thrown and no action is performed.
addPropertyChangeListenerback to summary
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)

Overrides java.awt.KeyboardFocusManager.addPropertyChangeListener.

Doc from java.awt.KeyboardFocusManager.addPropertyChangeListener.

Adds a PropertyChangeListener to the listener list for a specific property. The specified property may be user-defined, or one of the following:

  • whether the KeyboardFocusManager is currently managing focus for this application ("managingFocus")
  • the focus owner ("focusOwner")
  • the permanent focus owner ("permanentFocusOwner")
  • the focused Window ("focusedWindow")
  • the active Window ("activeWindow")
  • the default focus traversal policy ("defaultFocusTraversalPolicy")
  • the Set of default FORWARD_TRAVERSAL_KEYS ("forwardDefaultFocusTraversalKeys")
  • the Set of default BACKWARD_TRAVERSAL_KEYS ("backwardDefaultFocusTraversalKeys")
  • the Set of default UP_CYCLE_TRAVERSAL_KEYS ("upCycleDefaultFocusTraversalKeys")
  • the Set of default DOWN_CYCLE_TRAVERSAL_KEYS ("downCycleDefaultFocusTraversalKeys")
  • the current focus cycle root ("currentFocusCycleRoot")
If listener is null, no exception is thrown and no action is performed.
addVetoableChangeListenerback to summary
public void addVetoableChangeListener(VetoableChangeListener listener)

Overrides java.awt.KeyboardFocusManager.addVetoableChangeListener.

Doc from java.awt.KeyboardFocusManager.addVetoableChangeListener.

Adds a VetoableChangeListener to the listener list. The listener is registered for all vetoable properties of this class, including the following:

  • the focus owner ("focusOwner")
  • the permanent focus owner ("permanentFocusOwner")
  • the focused Window ("focusedWindow")
  • the active Window ("activeWindow")
If listener is null, no exception is thrown and no action is performed.
addVetoableChangeListenerback to summary
public void addVetoableChangeListener(String propertyName, VetoableChangeListener listener)

Overrides java.awt.KeyboardFocusManager.addVetoableChangeListener.

Doc from java.awt.KeyboardFocusManager.addVetoableChangeListener.

Adds a VetoableChangeListener to the listener list for a specific property. The specified property may be user-defined, or one of the following:

  • the focus owner ("focusOwner")
  • the permanent focus owner ("permanentFocusOwner")
  • the focused Window ("focusedWindow")
  • the active Window ("activeWindow")
If listener is null, no exception is thrown and no action is performed.
clearGlobalFocusOwnerback to summary
public void clearGlobalFocusOwner()

Overrides java.awt.KeyboardFocusManager.clearGlobalFocusOwner.

Doc from java.awt.KeyboardFocusManager.clearGlobalFocusOwner.

Clears the global focus owner at both the Java and native levels. If there exists a focus owner, that Component will receive a permanent FOCUS_LOST event. After this operation completes, the native windowing system will discard all user-generated KeyEvents until the user selects a new Component to receive focus, or a Component is given focus explicitly via a call to requestFocus(). This operation does not change the focused or active Windows.

This method is intended to be used only by KeyboardFocusManager set as current KeyboardFocusManager for the calling thread's context. It is not for general client use.

dispatchEventback to summary
public boolean dispatchEvent(AWTEvent e)

Overrides java.awt.DefaultKeyboardFocusManager.dispatchEvent.

Doc from java.awt.DefaultKeyboardFocusManager.dispatchEvent.

This method is called by the AWT event dispatcher requesting that the current KeyboardFocusManager dispatch the specified event on its behalf. DefaultKeyboardFocusManagers dispatch all FocusEvents, all WindowEvents related to focus, and all KeyEvents. These events are dispatched based on the KeyboardFocusManager's notion of the focus owner and the focused and active Windows, sometimes overriding the source of the specified AWTEvent. If this method returns false, then the AWT event dispatcher will attempt to dispatch the event itself.

dispatchKeyEventback to summary
public boolean dispatchKeyEvent(KeyEvent e)

Overrides java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent.

Implements java.awt.KeyEventDispatcher.dispatchKeyEvent.

Doc from java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent.

Called by dispatchEvent if no other KeyEventDispatcher in the dispatcher chain dispatched the KeyEvent, or if no other KeyEventDispatchers are registered. If the event has not been consumed, its target is enabled, and the focus owner is not null, this method dispatches the event to its target. This method will also subsequently dispatch the event to all registered KeyEventPostProcessors. After all this operations are finished, the event is passed to peers for processing.

In all cases, this method returns true, since DefaultKeyboardFocusManager is designed so that neither dispatchEvent, nor the AWT event dispatcher, should take further action on the event in any situation.

downFocusCycleback to summary
public void downFocusCycle(Container aContainer)

Overrides java.awt.DefaultKeyboardFocusManager.downFocusCycle.

Doc from java.awt.DefaultKeyboardFocusManager.downFocusCycle.

Moves the focus down one focus traversal cycle. If aContainer is a focus cycle root, then the focus owner is set to aContainer's default Component to focus, and the current focus cycle root is set to aContainer. If aContainer is not a focus cycle root, then no focus traversal operation occurs.

focusNextComponentback to summary
public void focusNextComponent(Component aComponent)

Overrides java.awt.DefaultKeyboardFocusManager.focusNextComponent.

Doc from java.awt.DefaultKeyboardFocusManager.focusNextComponent.

Focuses the Component after aComponent, typically based on a FocusTraversalPolicy.

focusPreviousComponentback to summary
public void focusPreviousComponent(Component aComponent)

Overrides java.awt.DefaultKeyboardFocusManager.focusPreviousComponent.

Doc from java.awt.DefaultKeyboardFocusManager.focusPreviousComponent.

Focuses the Component before aComponent, typically based on a FocusTraversalPolicy.

getActiveWindowback to summary
public Window getActiveWindow()

Overrides java.awt.KeyboardFocusManager.getActiveWindow.

Doc from java.awt.KeyboardFocusManager.getActiveWindow.

Returns the active Window. Only a Frame or a Dialog can be the active Window. The native windowing system may denote the active Window or its children with special decorations, such as a highlighted title bar. The active Window is always either the focused Window, or the first Frame or Dialog that is an owner of the focused Window.

getCurrentFocusCycleRootback to summary
public Container getCurrentFocusCycleRoot()

Overrides java.awt.KeyboardFocusManager.getCurrentFocusCycleRoot.

Doc from java.awt.KeyboardFocusManager.getCurrentFocusCycleRoot.

Returns the current focus cycle root, if the current focus cycle root is in the same context as the calling thread. If the focus owner is itself a focus cycle root, then it may be ambiguous as to which Components represent the next and previous Components to focus during normal focus traversal. In that case, the current focus cycle root is used to differentiate among the possibilities.

This method is intended to be used only by KeyboardFocusManagers and focus implementations. It is not for general client use.

getDefaultFocusTraversalKeysback to summary
public Set<AWTKeyStroke> getDefaultFocusTraversalKeys(int id)

Overrides java.awt.KeyboardFocusManager.getDefaultFocusTraversalKeys.

Doc from java.awt.KeyboardFocusManager.getDefaultFocusTraversalKeys.

Returns a Set of default focus traversal keys for a given traversal operation. This traversal key Set will be in effect on all Windows that have no such Set of their own explicitly defined. This Set will also be inherited, recursively, by any child Component of those Windows that has no such Set of its own explicitly defined. (See setDefaultFocusTraversalKeys for a full description of each operation.)

getDefaultFocusTraversalPolicyback to summary
public FocusTraversalPolicy getDefaultFocusTraversalPolicy()

Overrides java.awt.KeyboardFocusManager.getDefaultFocusTraversalPolicy.

Doc from java.awt.KeyboardFocusManager.getDefaultFocusTraversalPolicy.

Returns the default FocusTraversalPolicy. Top-level components use this value on their creation to initialize their own focus traversal policy by explicit call to Container.setFocusTraversalPolicy.

getDelegateback to summary
pack-priv KeyboardFocusManager getDelegate()
getFocusedWindowback to summary
public Window getFocusedWindow()

Overrides java.awt.KeyboardFocusManager.getFocusedWindow.

Doc from java.awt.KeyboardFocusManager.getFocusedWindow.

Returns the focused Window. The focused Window is the Window that is or contains the focus owner.

getFocusOwnerback to summary
public Component getFocusOwner()

Overrides java.awt.KeyboardFocusManager.getFocusOwner.

Doc from java.awt.KeyboardFocusManager.getFocusOwner.

Returns the focus owner, if the focus owner is in the same context as the calling thread. The focus owner is defined as the Component in an application that will typically receive all KeyEvents generated by the user. KeyEvents which map to the focus owner's focus traversal keys will not be delivered if focus traversal keys are enabled for the focus owner. In addition, KeyEventDispatchers may retarget or consume KeyEvents before they reach the focus owner.

getPermanentFocusOwnerback to summary
public Component getPermanentFocusOwner()

Overrides java.awt.KeyboardFocusManager.getPermanentFocusOwner.

Doc from java.awt.KeyboardFocusManager.getPermanentFocusOwner.

Returns the permanent focus owner. The permanent focus owner is defined as the last Component in an application to receive a permanent FOCUS_GAINED event. The focus owner and permanent focus owner are equivalent unless a temporary focus change is currently in effect. In such a situation, the permanent focus owner will again be the focus owner when the temporary focus change ends.

processKeyEventback to summary
public void processKeyEvent(Component focusedComponent, KeyEvent e)

Overrides java.awt.DefaultKeyboardFocusManager.processKeyEvent.

Doc from java.awt.DefaultKeyboardFocusManager.processKeyEvent.

This method initiates a focus traversal operation if and only if the KeyEvent represents a focus traversal key for the specified focusedComponent. It is expected that focusedComponent is the current focus owner, although this need not be the case. If it is not, focus traversal will nevertheless proceed as if focusedComponent were the focus owner.

removeKeyEventDispatcherback to summary
public void removeKeyEventDispatcher(KeyEventDispatcher dispatcher)

Overrides java.awt.KeyboardFocusManager.removeKeyEventDispatcher.

Doc from java.awt.KeyboardFocusManager.removeKeyEventDispatcher.

Removes a KeyEventDispatcher which was previously added to this KeyboardFocusManager's dispatcher chain. This KeyboardFocusManager cannot itself be removed, unless it was explicitly re-registered via a call to addKeyEventDispatcher.

If a null dispatcher is specified, if the specified dispatcher is not in the dispatcher chain, or if this KeyboardFocusManager is specified without having been explicitly re-registered, no action is taken and no exception is thrown.

In a multithreaded application, KeyEventDispatcher behaves the same as other AWT listeners. See AWT Threading Issues for more details.

removePropertyChangeListenerback to summary
public void removePropertyChangeListener(PropertyChangeListener listener)

Overrides java.awt.KeyboardFocusManager.removePropertyChangeListener.

Doc from java.awt.KeyboardFocusManager.removePropertyChangeListener.

Removes a PropertyChangeListener from the listener list. This method should be used to remove the PropertyChangeListeners that were registered for all bound properties of this class.

If listener is null, no exception is thrown and no action is performed.

removePropertyChangeListenerback to summary
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)

Overrides java.awt.KeyboardFocusManager.removePropertyChangeListener.

Doc from java.awt.KeyboardFocusManager.removePropertyChangeListener.

Removes a PropertyChangeListener from the listener list for a specific property. This method should be used to remove PropertyChangeListeners that were registered for a specific bound property.

If listener is null, no exception is thrown and no action is performed.

removeVetoableChangeListenerback to summary
public void removeVetoableChangeListener(VetoableChangeListener listener)

Overrides java.awt.KeyboardFocusManager.removeVetoableChangeListener.

Doc from java.awt.KeyboardFocusManager.removeVetoableChangeListener.

Removes a VetoableChangeListener from the listener list. This method should be used to remove the VetoableChangeListeners that were registered for all vetoable properties of this class.

If listener is null, no exception is thrown and no action is performed.

removeVetoableChangeListenerback to summary
public void removeVetoableChangeListener(String propertyName, VetoableChangeListener listener)

Overrides java.awt.KeyboardFocusManager.removeVetoableChangeListener.

Doc from java.awt.KeyboardFocusManager.removeVetoableChangeListener.

Removes a VetoableChangeListener from the listener list for a specific property. This method should be used to remove VetoableChangeListeners that were registered for a specific bound property.

If listener is null, no exception is thrown and no action is performed.

setDefaultFocusTraversalKeysback to summary
public void setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)

Overrides java.awt.KeyboardFocusManager.setDefaultFocusTraversalKeys.

Doc from java.awt.KeyboardFocusManager.setDefaultFocusTraversalKeys.

Sets the default focus traversal keys for a given traversal operation. This traversal key Set will be in effect on all Windows that have no such Set of their own explicitly defined. This Set will also be inherited, recursively, by any child Component of those Windows that has no such Set of its own explicitly defined.

The default values for the default focus traversal keys are implementation-dependent. Sun recommends that all implementations for a particular native platform use the same default values. The recommendations for Windows and Unix are listed below. These recommendations are used in the Sun AWT implementations.

Recommended default values for focus traversal keys
Identifier Meaning Default
KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS Normal forward keyboard traversal TAB on KEY_PRESSED, CTRL-TAB on KEY_PRESSED
KeyboardFocusManager.BACKWARD_TRAVERSAL_KEYS Normal reverse keyboard traversal SHIFT-TAB on KEY_PRESSED, CTRL-SHIFT-TAB on KEY_PRESSED
KeyboardFocusManager.UP_CYCLE_TRAVERSAL_KEYS Go up one focus traversal cycle none
KeyboardFocusManager.DOWN_CYCLE_TRAVERSAL_KEYS Go down one focus traversal cycle none
To disable a traversal key, use an empty Set; Collections.EMPTY_SET is recommended.

Using the AWTKeyStroke API, client code can specify on which of two specific KeyEvents, KEY_PRESSED or KEY_RELEASED, the focus traversal operation will occur. Regardless of which KeyEvent is specified, however, all KeyEvents related to the focus traversal key, including the associated KEY_TYPED event, will be consumed, and will not be dispatched to any Component. It is a runtime error to specify a KEY_TYPED event as mapping to a focus traversal operation, or to map the same event to multiple default focus traversal operations.

This method may throw a ClassCastException if any Object in keystrokes is not an AWTKeyStroke.

setDefaultFocusTraversalPolicyback to summary
public void setDefaultFocusTraversalPolicy(FocusTraversalPolicy defaultPolicy)

Overrides java.awt.KeyboardFocusManager.setDefaultFocusTraversalPolicy.

Doc from java.awt.KeyboardFocusManager.setDefaultFocusTraversalPolicy.

Sets the default FocusTraversalPolicy. Top-level components use this value on their creation to initialize their own focus traversal policy by explicit call to Container.setFocusTraversalPolicy.

Note

this call doesn't affect already created components as they have their policy initialized. Only new components will use this policy as their default policy.

setGlobalCurrentFocusCycleRootback to summary
public void setGlobalCurrentFocusCycleRoot(Container newFocusCycleRoot)

Overrides java.awt.KeyboardFocusManager.setGlobalCurrentFocusCycleRoot.

Doc from java.awt.KeyboardFocusManager.setGlobalCurrentFocusCycleRoot.

Sets the current focus cycle root. If the focus owner is itself a focus cycle root, then it may be ambiguous as to which Components represent the next and previous Components to focus during normal focus traversal. In that case, the current focus cycle root is used to differentiate among the possibilities.

This method is intended to be used only by KeyboardFocusManagers and focus implementations. It is not for general client use.

upFocusCycleback to summary
public void upFocusCycle(Component aComponent)

Overrides java.awt.DefaultKeyboardFocusManager.upFocusCycle.

Doc from java.awt.DefaultKeyboardFocusManager.upFocusCycle.

Moves the focus up one focus traversal cycle. Typically, the focus owner is set to aComponent's focus cycle root, and the current focus cycle root is set to the new focus owner's focus cycle root. If, however, aComponent's focus cycle root is a Window, then the focus owner is set to the focus cycle root's default Component to focus, and the current focus cycle root is unchanged.