A demonstration of graphics tools in javax.swing.
Java Essentials
, Chapter 12 pgs 496-498
Applet Source Code