MenuShortcut
class represents a keyboard accelerator for a MenuItem. Menu shortcuts are created using virtual keycodes, not characters. For example, a menu shortcut for Ctrl-a (assuming that Control is the accelerator key) would be created with code like the following:
MenuShortcut ms = new MenuShortcut(KeyEvent.VK_A, false);
The accelerator key is platform-dependent and may be obtained via {@link Toolkit#getMenuShortcutKeyMask}. @author Thomas Ball @version 1.26, 11/17/05 @since JDK1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|