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.


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 ...

Get Graphic Java™ 1.2, Volume I: AWT, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.