Basic HTML version of Foils prepared 13 July 98

Foil 94 Handling CheckboxGroup Events

From Java Academy II:Intermediate Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo

The CheckboxGroupTest Applet
Since a CheckboxGroup is a set of checkboxes, everything we said before still applies:
  • Each checkbox in a group is capable of generating ItemEvents
  • ItemEvents are handled by an ItemListener
Note: The getSelectedCheckbox() method of the CheckboxGroup class returns the currently selected checkbox



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998