import ......
public class Data extends Applet 
{
Calendar calendar = new GregorianCalendar();
Calendar examdate = new GregorianCalendar(2008,0,19,8,0,0);
Thread t = new Thread(); 
TextField text1 = new TextField();

/* public void destroy()
{
System.exit(0);
}*/
public void init()
{
add("South",text1);
try
{
while( calendar.before( examdate ) )
{
text1.setText( "....");
t.sleep(1000);
calendar = new GregorianCalendar();
}
}
catch(InterruptedException e)
{
}
}
}上面是一个用到多线程的applet 小程序,在另一html 文件中调用它,可以正常显示,可是点关闭就是关闭不了,用html 文件运行也可以,不过还是不能彻底关闭,进程里还有!
请高手指教!