Share via


CheckboxMenuItem Members

Class Overview | This Package | All Packages

Constructors

Name Description
CheckboxMenuItem() Create a check box menu item with an empty label.
CheckboxMenuItem(String) Create a check box menu item with the specified label.
CheckboxMenuItem(String, boolean) Create a check box menu item with the specified label and state.

Methods

Name Description
addItemListener(ItemListener) Adds the specified item listener to receive item events from this check box menu item.
addNotify() Creates the peer of the checkbox item.
getSelectedObjects() Returns the an array (length 1) containing the checkbox menu item label or null if the checkbox is not selected.
getState() Determines whether the state of this check box menu item is "on" or "off."
paramString() Returns the parameter string representing the state of this check box menu item.
processEvent(AWTEvent) Processes events on this check box menu item.
processItemEvent(ItemEvent) Processes item events occurring on this check box menu item by dispatching them to any registered ItemListener objects.
removeItemListener(ItemListener) Removes the specified item listener so that it no longer receives item events from this check box menu item.
setState(boolean) Sets this check box menu item to the specifed state.