Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
Can't draw on JApplet, we'll use a JPanel subclass.
With Swing, we use the paintComponent method.
OurContent's superclass JComponent has to paint before we do our own drawing.
JComponent contains Swing's basic painting logic.
Double buffering is built-in in Swing, so no need for optimizing.
It's possible to draw on a separate transparent layer on top of the ContentPane, the so-called GlassPane. Shown in the 2nd lesson.