软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
Modifier and Type | Method and Description |
---|---|
MenuShortcut |
MenuItem.getShortcut()
得到这个菜单项关联的
MenuShortcut 对象,
|
Modifier and Type | Method and Description |
---|---|
Enumeration<MenuShortcut> |
MenuBar.shortcuts()
获取此菜单栏管理的所有菜单快捷键的枚举。
|
Modifier and Type | Method and Description |
---|---|
void |
MenuBar.deleteShortcut(MenuShortcut s)
删除指定的菜单快捷方式。
|
boolean |
MenuShortcut.equals(MenuShortcut s)
是否这menushortcut相同:平等是指,menushortcuts使用相同的密钥,或者使用或不使用Shift键。
|
MenuItem |
MenuBar.getShortcutMenuItem(MenuShortcut s)
获取与指定的
MenuShortcut
MenuItem 对象关联的实例,或
null 如果菜单项的菜单管理没有与指定的菜单快捷方式相关。
|
void |
MenuItem.setShortcut(MenuShortcut s)
设置此菜单项关联的
MenuShortcut 对象。
|
Constructor and Description |
---|
MenuItem(String label, MenuShortcut s)
用相关的键盘快捷键创建一个菜单项。
|
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.