/* * To change this template, choose Tools | Templates * and open the template in the editor. */ import javax.swing.JApplet; import java.awt.Graphics; /** * * @author Jim */ public class AppletDemo extends JApplet { /** * Initialization method that will be called after the applet is loaded * into the browser. */ public void init() { // TODO start asynchronous download of heavy resources } // TODO overwrite start(), stop() and destroy() methods public void paint( Graphics canvas ) { canvas.drawOval(100, 50, 200, 200); canvas.fillOval(155, 100, 10, 20); canvas.fillOval(230, 100, 10, 20); canvas.drawArc(150, 160, 100, 50, 180, 180); } }