public class BasicTableUI.KeyHandler extends Object implements KeyListener
BasicTableUI类中BasicTableUI 。
从Java 2平台v1.3开始,此类不再使用。 相反, JTable覆盖processKeyBinding以将事件调度到当前的TableCellEditor 。
| Constructor and Description |
|---|
KeyHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
keyPressed(KeyEvent e)
按下键时调用。
|
void |
keyReleased(KeyEvent e)
当键已被释放时调用。
|
void |
keyTyped(KeyEvent e)
键入键时调用。
|
public void keyPressed(KeyEvent e)
KeyListener复制
KeyEvent一键按下事件的定义。
keyPressed在接口
KeyListener
public void keyReleased(KeyEvent e)
KeyListener复制
KeyEvent一键释放事件的定义。
keyReleased在界面
KeyListener
public void keyTyped(KeyEvent e)
KeyListener复制
KeyEvent对于键入键事件的定义。
keyTyped在界面
KeyListener
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, 2014, Oracle and/or its affiliates. All rights reserved.