Index Insert Menu
Menu Item ...
Inserts a menu item description at the caret position. The menu item
description consists of the following parts:
-
ID: A string that identifies the menu item. If the menu item is
inserted in a menu, this string must be specified
-
Type: One of Item, CheckboxMenuItem or Submenu
-
Label: The label which will be used to display this menu item.
You can use the ampersand character to specify a mnemonic character. If
you don't specify a label, the ID is used instead
-
Action: This is the string, which is returned from the getActionCommand
of the java.awt.event.ActionEvent class. If you don't specify
an action, the ID is used instead
-
Shortcut: Optional; an accelerator key for the menu item. Use
one of the VK_ constants which are defined in the java.awt.event.KeyEvent
class. Some keys don't work and some modifiers may be ignored when using
AWT menus
-
Image: Optional; a .gif or .jpg image to display
in toolbar buttons or beside the menu label. When previewing a menubar
or toolbar, the path must be relative to the project directory, when loading
it from your application, it must be relative to the location of your loader
class. You can create loader classes by deriving the source code from a
template. A browse button is available
for fast image specification. If you select an image, that isn't relative
to the project directory, an error message will be displayed. Only available
in swing menubars and toolbars
-
Tooltip: Optional; a tooltip, that is used in toolbar buttons.
Only available in swing menubars and toolbars
This dialog is an insertion help; it's also possible to key in the menu
item description into the editor window.