JAVA中与Applet生命周期有什么

来源:百度知道 编辑:UC知道 时间:2024/09/21 10:32:09

Java Applet生命周期

import java.applet.*;
import java.awt.*;
public class TestApplet extends Applet
{
public void init()
{

System.out.println("init");

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

init();
start();
stop();
destroy();

init();
start();
stop();
destroy();