import javax.swing.JApplet; public class MainApplet extends JApplet { public void init() { System.out.println("init"); } public void start() { System.out.println("started"); } }
HTML file:
<APPLET CODE="MainApplet.class" WIDTH=300 HEIGHT=200> </APPLET>