JApplet: stop() : JApplet « javax.swing « Java by API






JApplet: stop()


import java.awt.Graphics;

import javax.swing.JApplet;

public class MainClass extends JApplet {
  String str = "";

  public void init() {
    str += "init; ";
  }

  public void start() {
    str += "start; ";
  }

  public void stop() {
    str += "stop; ";
  }

  public void destroy() {
    System.out.println("destroy");
  }

  public void paint(Graphics g) {
    g.drawString(str, 10, 25);
  }
}

           
       








Related examples in the same category

1.JApplet: destroy()
2.JApplet: init()
3.JApplet: paint(Graphics g)
4.JApplet: setJMenuBar(JMenuBar menuBar)
5.JApplet: showStatus(String text)
6.JApplet: start()