Uses of Class
java.awt.MenuShortcut
| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting
graphics and images.
|
-
Uses of MenuShortcut in java.awt
Methods in java.awt that return MenuShortcut Modifier and Type Method Description MenuShortcutMenuItem. getShortcut()Get theMenuShortcutobject associated with this menu item,Methods in java.awt that return types with arguments of type MenuShortcut Modifier and Type Method Description Enumeration<MenuShortcut>MenuBar. shortcuts()Gets an enumeration of all menu shortcuts this menu bar is managing.Methods in java.awt with parameters of type MenuShortcut Modifier and Type Method Description voidMenuBar. deleteShortcut(MenuShortcut s)Deletes the specified menu shortcut.booleanMenuShortcut. 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.MenuItemMenuBar. getShortcutMenuItem(MenuShortcut s)Gets the instance ofMenuItemassociated with the specifiedMenuShortcutobject, ornullif none of the menu items being managed by this menu bar is associated with the specified menu shortcut.voidMenuItem. setShortcut(MenuShortcut s)Set theMenuShortcutobject associated with this menu item.Constructors in java.awt with parameters of type MenuShortcut Constructor Description MenuItem(String label, MenuShortcut s)Create a menu item with an associated keyboard shortcut.