KeyListener
, EventListener
BasicTableUI
public class BasicTableUI.KeyHandler extends Object implements KeyListener
BasicTableUI
. As of Java 2 platform v1.3 this class is no longer used. Instead JTable
overrides processKeyBinding
to dispatch the event to the current TableCellEditor
.
Constructor | Description |
---|---|
KeyHandler() |
Constructs a KeyHandler . |
Modifier and Type | Method | Description |
---|---|---|
void |
keyPressed |
Invoked when a key has been pressed. |
void |
keyReleased |
Invoked when a key has been released. |
void |
keyTyped |
Invoked when a key has been typed. |
public KeyHandler()
KeyHandler
.public void keyPressed(KeyEvent e)
KeyListener
KeyEvent
for a definition of a key pressed event.keyPressed
in interface KeyListener
e
- the event to be processedpublic void keyReleased(KeyEvent e)
KeyListener
KeyEvent
for a definition of a key released event.keyReleased
in interface KeyListener
e
- the event to be processedpublic void keyTyped(KeyEvent e)
KeyListener
KeyEvent
for a definition of a key typed event.keyTyped
in interface KeyListener
e
- the event to be processed
© 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/plaf/basic/BasicTableUI.KeyHandler.html