Graphics and Media
From Wikibooks, open books for an open world
< Java Programming | Applets
Navigate User Interface topic:
)
|
Painting[edit]
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.