Uses of Class
java.awt.MenuShortcut
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
-
Uses of MenuShortcut in java.awt
Modifier and TypeMethodDescriptionMenuItem.getShortcut()
Get theMenuShortcut
object associated with this menu item,Modifier and TypeMethodDescriptionMenuBar.shortcuts()
Gets an enumeration of all menu shortcuts this menu bar is managing.Modifier and TypeMethodDescriptionvoid
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.MenuBar.getShortcutMenuItem
(MenuShortcut s) Gets the instance ofMenuItem
associated with the specifiedMenuShortcut
object, ornull
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 theMenuShortcut
object associated with this menu item.ModifierConstructorDescriptionMenuItem
(String label, MenuShortcut s) Create a menu item with an associated keyboard shortcut.