KeyEventDispatcher
, KeyEventPostProcessor
public class DefaultFocusManager extends FocusManager
java.awt.KeyboardFocusManager
and java.awt.DefaultKeyboardFocusManager
instead. Please see How to Use the Focus Subsystem, a section in The Java Tutorial, and the Focus Specification for more information.
FOCUS_MANAGER_CLASS_PROPERTY
BACKWARD_TRAVERSAL_KEYS, DOWN_CYCLE_TRAVERSAL_KEYS, FORWARD_TRAVERSAL_KEYS, UP_CYCLE_TRAVERSAL_KEYS
Constructor | Description |
---|---|
DefaultFocusManager() |
Constructs a DefaultFocusManager . |
Modifier and Type | Method | Description |
---|---|---|
boolean |
compareTabOrder |
Compares the components by their focus traversal cycle order. |
Component |
getComponentAfter |
Returns the component after. |
Component |
getComponentBefore |
Returns the component before. |
Component |
getFirstComponent |
Returns the first component. |
Component |
getLastComponent |
Returns the last component. |
disableSwingFocusManager, getCurrentManager, isFocusManagerEnabled, setCurrentManager
dequeueKeyEvents, discardKeyEvents, dispatchEvent, dispatchKeyEvent, downFocusCycle, enqueueKeyEvents, focusNextComponent, focusPreviousComponent, postProcessKeyEvent, processKeyEvent, upFocusCycle
addKeyEventDispatcher, addKeyEventPostProcessor, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clearFocusOwner, clearGlobalFocusOwner, downFocusCycle, firePropertyChange, fireVetoableChange, focusNextComponent, focusPreviousComponent, getActiveWindow, getCurrentFocusCycleRoot, getCurrentKeyboardFocusManager, getDefaultFocusTraversalKeys, getDefaultFocusTraversalPolicy, getFocusedWindow, getFocusOwner, getGlobalActiveWindow, getGlobalCurrentFocusCycleRoot, getGlobalFocusedWindow, getGlobalFocusOwner, getGlobalPermanentFocusOwner, getKeyEventDispatchers, getKeyEventPostProcessors, getPermanentFocusOwner, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, redispatchEvent, removeKeyEventDispatcher, removeKeyEventPostProcessor, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setCurrentKeyboardFocusManager, setDefaultFocusTraversalKeys, setDefaultFocusTraversalPolicy, setGlobalActiveWindow, setGlobalCurrentFocusCycleRoot, setGlobalFocusedWindow, setGlobalFocusOwner, setGlobalPermanentFocusOwner, upFocusCycle
public DefaultFocusManager()
DefaultFocusManager
.public Component getComponentAfter(Container aContainer, Component aComponent)
aContainer
- a containeraComponent
- a componentpublic Component getComponentBefore(Container aContainer, Component aComponent)
aContainer
- a containeraComponent
- a componentpublic Component getFirstComponent(Container aContainer)
aContainer
- a containerpublic Component getLastComponent(Container aContainer)
aContainer
- a containerpublic boolean compareTabOrder(Component a, Component b)
a
- the first componentb
- the second component
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/DefaultFocusManager.html