Java java.awt CheckboxMenuItem fields, constructors, methods, implement or subclass

Example usage for Java java.awt CheckboxMenuItem fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt CheckboxMenuItem.

The text is from its open source code.

Constructor

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

Method

voidaddItemListener(ItemListener l)
Adds the specified item listener to receive item events from this check box menu item.
voidsetEnabled(boolean b)
Sets whether or not this menu item can be chosen.
voidsetFont(Font f)
Sets the font to be used for this menu component to the specified font.
voidsetState(boolean b)
Sets this check box menu item to the specified state.