public class BasicTreeUI.KeyHandler extends KeyAdapter
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
isKeyDown |
Set to true while keyPressed is active.
|
protected Action |
repeatKeyAction |
Key code that is being generated for.
|
| Constructor | Description |
|---|---|
KeyHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
keyPressed(KeyEvent e) |
Invoked when a key has been pressed.
|
void |
keyReleased(KeyEvent e) |
Invoked when a key has been released.
|
void |
keyTyped(KeyEvent e) |
Invoked when a key has been typed.
|
protected Action repeatKeyAction
protected boolean isKeyDown
public void keyTyped(KeyEvent e)
keyTyped in interface KeyListenerkeyTyped in class KeyAdapterpublic void keyPressed(KeyEvent e)
KeyAdapterkeyPressed in interface KeyListenerkeyPressed in class KeyAdapterpublic void keyReleased(KeyEvent e)
KeyAdapterkeyReleased in interface KeyListenerkeyReleased in class KeyAdapter Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.