我写了一个Japplet,
public class test() extends Japplet{
public test(){
//在这里添加了一些组件,并调用相关class
//显示从1到100,1秒一个
}
//这里没有init(),start(),stop() method
}
还有一个html用来测试的,因为浏览器会先自动创建一个test对象,所以init(),start(),没有用到.
假如现在已经数到50了,the user leaves this page and this page becomes inactive, if i want the applet to re-initialise to count from 1 when the user comes back,应该怎么做啊?? 为什么我在start(),stop()里写的method都不管用呢??