O'Reilly logo

Graphic Java™ 1.2, Volume I: AWT, Third Edition by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Playfield and DoubleBufferedContainer

Of course, a sprite is useless without a DoubleBufferedContainer upon which to frolic, so let's turn our attention to the Playfield class and discuss the animation functionality it provides.

Playfield

A Playfield is a double buffered container that adds animation capabilities to the double buffering functionality implemented by the DoubleBufferedContainer class. The class diagram for the Playfield class is shown in Figure 25-3.

Figure 25-3. Playfield Class Diagram

Playfield extends DoubleBufferedContainer. We've already discussed the implementation of DoubleBufferedContainer in “Double Buffering” , so we won't ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required