import java.awt.Graphics; 
import java.applet.Applet;

public class StartApplet extends Applet {
  int count;
  String[] str = new String[10];

  public void init() {  // init()のオーバーライド
  	count = 1;
  	str[0] = new String("init() called.");
  }
  
  public void start() { // start()のオーバーライド
    ++count;
    if ( count <= 10 ) str[count-1] = new String("start() called.");
  }
  
  public void paint(Graphics g) { // paint()のオーバーライド
    for(int i=0; i<count; ++i) 
      g.drawString(str[i], 25, 15*i+25);
  }    
  
  public void stop() { // stop()のオーバーライド
    ++count;
    if ( count <= 10 ) str[count-1] = new String("stop() called.");
  }
  
  /* public void destroy() { // destroy()のオーバーライド
    ++count;
    System.out.println("destroy count = "+count);
    if ( count <= 10 ) str[count-1] = new String("destroy() called.");
  } */
} 
