<<< Connecting event listener with the event source | Index | The JCheckBox example >>> |
JCheckBox consists of a label positioned beside a square
Clicking the square turns check mark option on or off
Constructors
JCheckBox()
JCheckBox( "text label" )
JCheckBox( "text label", boolean checked )
Methods
void setText( String ) String getText() void setSelected( boolean ) boolean isSelected() void addItemListener( new ItemListener() {} );
<<< Connecting event listener with the event source | Index | The JCheckBox example >>> |