一下是一个java的小程序:
import java.awt.*;
import java.applet.*;
import java.util.Date;
import java.text.DateFormat;
public class clock extends Applet implements Runnable{
DateFormat timeFormat;
Thread timer;
boolean running;

public void init(){
timeFormat = DateFormat.getDateTimeInstance();
}


public void start(){
running = true;
if(timer == null){
timer = new Thread(this);
timer.start();
}
}


public void run(){
while(running){
showStatus(timeFormat.format(new Date()));
try{
Thread.sleep(1000);
}catch(InterruptedException e){
System.exit(0);
}

timer = null;
}
}


public void stop(){
running = false;
timer.stop();
}
}
但是编译完之后出现这个问题
--------------------配置: <默认>--------------------
注意: C:\Documents and Settings\Administrator\桌面\clock.java 使用或覆盖了已过时的 API。
注意: 要了解详细信息,请使用 -Xlint:deprecation 重新编译。处理已完成。
请帮忙解决下,小弟感激不尽。