import java.applet.Applet; import java.awt.Frame; //should be JFrame for JApplet public class FrameTestExecutor extends Frame { Applet applet; public FrameTestExecutor(Applet applet) { super(applet.getClass().getName()); this.applet = applet; setSize(500, 500); //just add the applet as component add(applet); show(); } public static void main(String[] argv) { //create the applet here Applet applet = new MyApplet(); //put it on a frame new FrameTestExecutor(applet); //init and start applet.init(); applet.start(); //run test new MyTest(applet).startTest(); } }