Using this class you can add a trivial main program to any Applet and run it directly, as well as from a browser or the appletviewer.