Basic HTML version of Foils prepared 13 July 98

Foil 90 Processing the Checkboxes

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


A for-loop processes each checkbox: int n = box.length; for ( int i = 0; i < n; i++ ) { box[i].setForeground(...); box[i].setBackground(...); add( box[i] ); box[i].addItemListener( this ); }
The keyword this refers to the current applet



© 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