Java Programming/Applets/Graphics and Media

Painting
By overriding the  and   methods of an Applet (or one of its subcomponents), you can have fairly direct control over the rendering of an Applet. The Graphics object provides various primitives for working for two-dimensional graphics.