//
import java.awt.*;
import java.util.Date;
public class Animation extends java.applet.Applet {
Font timesRoman24Gras = new Font("TimesRoman",Font.BOLD,24);
Date maintenant;
public void paint(Graphics g) {
g.setColor(Color.red);
g.setFont(timesRoman24Gras);
while (true) {
g.clearRect(0,0,size().width,size().height);
maintenant = new Date();
g.drawString(maintenant.toString(), 10, 40);
try {Thread.sleep(1000);}
catch(InterruptedException signal) {}
}
}
}