Basic HTML version of Foils prepared 13 July 98

Foil 91 Handling Item Events

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


In the example applet CheckboxTest, the itemStateChanged(...) method builds a string depending on the state of each checkbox
It uses methods getState() and getLabel() of the Checkbox class, and methods equals(...), lastIndexOf(...), substring(...), and toLowerCase() of the String class



© 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