CheckboxMenuItem.CheckboxMenuItem

CheckboxMenuItem.CheckboxMenuItem

Class Overview | Class Members | This Package | All Packages

Syntax 1
public CheckboxMenuItem()
Description
Create a check box menu item with an empty label. The item's state is initially set to "off."



Syntax 2
public CheckboxMenuItem( String label )
Parameters
label
a string label for the check box menu item, or null for an unlabeled menu item.
Description
Create a check box menu item with the specified label. The item's state is initially set to "off."



Syntax 3
public CheckboxMenuItem( String label, boolean state )
Parameters
label
the button label.
state
the initial state of the menu item, where true indicates "on" and false indicates "off."
Description
Create a check box menu item with the specified label and state.