Composing an applet of a class which extends Thread:
This example uses two different classes which
extend Thread. Each class has the ability to paint itself (this is done
in the run() method). Also the applet class is composed of arrays
of the two thread classes.