Java Programming/Applets/Graphics and Media
From Wikibooks, the open-content textbooks collection
[edit] Graphics and Media
[edit] Painting
By overriding the update(Graphics g) and paint(Graphics g) methods of an Applet (or one of it's sub-components), you can have fairly direct control over the rendering of an Applet. The Graphics object provides various primitives for working for two-dimensional graphics.