Menu.Menu

Menu.Menu

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Menu()
Description
Constructs a new menu with an empty label. This menu is not a tear-off menu.



Syntax 2
public Menu( String label )
Parameters
label
the menu's label in the menu bar, or in another menu of which this menu is a submenu.
Description
Constructs a new menu with the specified label. This menu is not a tear-off menu.



Syntax 3
public Menu( String label, boolean tearOff )
Parameters
label
the menu's label in the menu bar, or in another menu of which this menu is a submenu.
tearOff
if true, the menu is a tear-off menu.
Description
Constructs a new menu with the specified label. If the value of tearOff is true, the menu can be torn off.

Tear-off functionality may not be supported by all implementations of AWT. If a particular implementation doesn't support tear-off menus, this value is silently ignored.