applet的问题。
import java.awt.*;
import java.applet.Applet;
public class StarterApplet extends Applet
{
private Label l;
public void init()
{
System.out.println( "StarterApplet::init() ");
}
public void start()
{
System.out.println( "StarterApplet::start() ");
l=new Label( "StarterApplet ");
add(l);
}
public void stop()
{
System.out.println( "StarterApplet::stop() ");
remove(l);
}
public void destory()
{
System.out.println( "StarterApplet::destory() ");
}
}
运行结果:
StarterApplet::init()
StarterApplet::start()
StarterApplet::stop()
怎么没有:StarterApplet::destory()啊?
------解决方案--------------------是destroy
不是destory......