MenuItem.MenuItem
Class Overview | Class Members | This Package | All Packages
Syntax 1
public MenuItem()
Description
Constructs a new MenuItem with an empty label and no keyboard shortcut.
Syntax 2
public MenuItem( String label )
Parameters
- label
the label for this menu item.
Description
Constructs a new MenuItem with the specified label and no keyboard shortcut. Note that use of "-" in a label is reserved to indicate a separator between menu items. By default, all menu items except for separators are enabled.
Syntax 3
public MenuItem( String label**, MenuShortcut** s )
Parameters
- label
the label for this menu item. - s
the instance of MenuShortcut associated with this menu item.
Description
Create a menu item with an associated keyboard shortcut. Note that use of "-" in a label is reserved to indicate a separator between menu items. By default, all menu items except for separators are enabled.