软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
Modifier and Type | Method and Description |
---|---|
static AWTKeyStroke |
AWTKeyStroke.getAWTKeyStroke(char keyChar)
返回一个
AWTKeyStroke 表示指定的字符一个
KEY_TYPED 事件共享实例。
|
static AWTKeyStroke |
AWTKeyStroke.getAWTKeyStroke(Character keyChar, int modifiers)
返回一个
AWTKeyStroke 表示指定的字符对象和一组修饰符
KEY_TYPED 事件共享实例。
|
static AWTKeyStroke |
AWTKeyStroke.getAWTKeyStroke(int keyCode, int modifiers)
返回一个
AWTKeyStroke 共享实例,给出了一个数字键码和一组修饰符。
|
static AWTKeyStroke |
AWTKeyStroke.getAWTKeyStroke(int keyCode, int modifiers, boolean onKeyRelease)
返回一个
AWTKeyStroke 共享实例,给出了一个数字键码和一组修饰符指定键是否被按下或释放时激活它。
|
static AWTKeyStroke |
AWTKeyStroke.getAWTKeyStroke(String s)
将一个字符串并返回一个
AWTKeyStroke 。
|
static AWTKeyStroke |
AWTKeyStroke.getAWTKeyStrokeForEvent(KeyEvent anEvent)
返回一个
AWTKeyStroke 代表中风产生了
KeyEvent 。
|
Modifier and Type | Method and Description |
---|---|
Set<AWTKeyStroke> |
KeyboardFocusManager.getDefaultFocusTraversalKeys(int id)
返回一个给定的遍历操作的默认焦点遍历键。
|
Set<AWTKeyStroke> |
Container.getFocusTraversalKeys(int id)
返回此容器的一个给定遍历操作的焦点遍历键集的集合。
|
Set<AWTKeyStroke> |
Window.getFocusTraversalKeys(int id)
获取此窗口的焦点遍历键。
|
Set<AWTKeyStroke> |
Component.getFocusTraversalKeys(int id)
返回此组件的一个给定遍历操作的焦点遍历键集的集合。
|
Modifier and Type | Method and Description |
---|---|
void |
KeyboardFocusManager.setDefaultFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)
设置一个给定的遍历操作的默认焦点遍历键。
|
void |
Container.setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)
设置此容器的一个给定遍历操作的焦点遍历键。
|
void |
Component.setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)
设置此组件的一个给定遍历操作的焦点遍历键。
|
Modifier and Type | Class and Description |
---|---|
class |
KeyStroke
一个按键是键盘上的一个关键动作,或等效输入装置。
|
Modifier and Type | Method and Description |
---|---|
void |
JComponent.setFocusTraversalKeys(int id, Set<? extends AWTKeyStroke> keystrokes)
设置此组件的一个给定遍历操作的焦点遍历键。
|
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.