<<< Event Listener Examples | Index | The JCheckBox Class >>> |
Event listener establishes relationship between Swing component and a class that reacts to the user's manipulation of the component.
For example, JCheckBox responds to user mouse clicks and supports
addItemListener( eventHandler )
method.
The format of "add listener" methods is
theSourceOfTheEvent.addListenerMethod( theClassThatShouldRespond );
For a complete list of components and listeners, see Listeners Supported by Swing Components
<<< Event Listener Examples | Index | The JCheckBox Class >>> |