Package | Description |
---|---|
java.awt |
Contains all of the classes for creating user
interfaces and for painting graphics and images.
|
Modifier and Type | Method and Description |
---|---|
MenuShortcut |
MenuItem.getShortcut()
Get the
MenuShortcut object associated with this
menu item, |
Modifier and Type | Method and Description |
---|---|
Enumeration<MenuShortcut> |
MenuBar.shortcuts()
Gets an enumeration of all menu shortcuts this menu bar
is managing.
|
Modifier and Type | Method and Description |
---|---|
void |
MenuBar.deleteShortcut(MenuShortcut s)
Deletes the specified menu shortcut.
|
boolean |
MenuShortcut.equals(MenuShortcut s)
Returns whether this MenuShortcut is the same as another:
equality is defined to mean that both MenuShortcuts use the same key
and both either use or don't use the SHIFT key.
|
MenuItem |
MenuBar.getShortcutMenuItem(MenuShortcut s)
Gets the instance of
MenuItem associated
with the specified MenuShortcut object,
or null if none of the menu items being managed
by this menu bar is associated with the specified menu
shortcut. |
void |
MenuItem.setShortcut(MenuShortcut s)
Set the
MenuShortcut object associated with this
menu item. |
Constructor and Description |
---|
MenuItem(String label,
MenuShortcut s)
Create a menu item with an associated keyboard shortcut.
|
aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.