import java.applet.Applet; import java.awt.Frame; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; public MyApplet extends Applet { // ... /** * Convert an Applet to a switchitter. * Allow this Applet to run as as application as well. * * @param args command line arguments ignored. */ public static void main( String args[] ) { Hybrid.fireup ( new MyApplet( false /* not being run as Applet */ ), TITLE_STRING + " " + VERSION_STRING /* title for frame */, APPLET_WIDTH, APPLET_HEIGHT ; } }