import java.applet.Applet; import java.awt.*; public class MultiApplet extends Frame { public static void main(String[] args) { MultiApplet ma = new MultiApplet("MultiApplet"); ma.resize(200,200); ma.setLayout(new GridLayout(2, 1)); ma.launchApplet(); ma.launchApplet(); ma.show(); } public MultiApplet(String s) { super(s); } void launchApplet() { Applet theApplet = new Clock2(); add(theApplet); theApplet.init(); theApplet.start(); } }