Processing the Checkboxes
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