Tom Kelliher, CS 116
Nov. 10, 2000
Won't cover all of readings in class. Example: switch
.
Quiz at end of class.
Comment on the PostLab assignment: enter one record at a time.
Read Chapter 6, Lab 6 handout.
FrontPage 2000 and your CS ToolBox.
Lab 6.
Sect. 6.2. Examples:
Sect. 6.3.
Components delegate event handling to other objects (including themselves
--- this
).
import java.awt.event.*;
source
) generates events.
listener
) handles events:
implements XXXXListener
interface.
source
delegates listener
to handle events:
source.addXXXXListener(listener);
Study the Etch-A-Sketch applet, adding buttons to move the ball up and down.