import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.swing.JFrame;
import javax.swing.JApplet;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class MyApplet extends JApplet
   {
   // ...

   /**
       * Convert an JApplet to a switchitter.
       * Allow this JApplet to run as as application as well.
       *
       * @param args command line arguments ignored.
       */
   public static void main( String args[] )
      {
      HybridJ.fireup( new MyApplet( false /* not being run as Applet */ ),
                      TITLE_STRING + " " + VERSION_STRING /* title for frame */,
                      APPLET_WIDTH,
                      APPLET_HEIGHT );

      }
   }