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