[<< wikibooks] Java Programming/Applets/Graphics and Media
=== Painting ===
By overriding the update(Graphics g) and paint(Graphics g) 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.