Listing 8 begins the registration
Listing 8. Begin the registration of an event handler on the slider. |
---|
slider.addChangeListener(
new ChangeListener(){
public void stateChanged(ChangeEvent e){
//Draw a new copy of the background on the
// display.
graphics = display.getGraphics();
graphics.drawImage(
background.getImage(),0,0,null);
|
File: cg.htm | [Next] | [Prev] |