
A Useful Method of the JButton Class
Return value Method name and argument list
void addActionListener( ActionListener handler )
registers an event handler for ActionEvents on this button.This
method is inherited from the AbstractButton class.
JCheckBox
Package: javax.swing
Description: a checkbox user interface component. When a user clicks the
checkbox, its state alternates between selected and not selected. Each click
fires an ItemEvent.
Constructors
JCheckBox( String checkBoxLabel )
constructs a checkbox labeled checkBoxLabel.By default,the
checkbox is initially deselected.
JCheckBox( String checkBoxLabel, boolean selected )
constructs a checkbox labeled ...