Java Reference
In-Depth Information
LISTING 12.5
continued
public void paint (Graphics page)
{
drawPictures (APPLET_WIDTH, page);
}
}
DISPLAY
This visual effect is created quite easily using recursion. The applet's init
method initially loads the three images. The paint method then invokes the
drawPictures method, which accepts a parameter that defines the size of the area
in which pictures are displayed. It draws the three images using the drawImage
Search WWH ::




Custom Search