The applet defines a separate class called ColorCanvas, a subclass of Canvas |
An instance of ColorCanvas shows a sample of each color in the SystemColor class |
A ScrollPane object the size of the applet window is created |
The (large) ColorCanvas object is then added to the ScrollPane |