i try to do a animation....
all 10 minutes i need to repaint and drew the oval again after some of time
i think the problam here
the code:
import java.applet.*;
import java.awt.*;
public class ok extends Applet implements Runnable {
int y;
Thread t = null;
public void paint(Graphics g)
{
while(y > 500)
{
g.fillOval(100, y, 50, 50);
y = y+10;
t.sleep( 1000 );
repaint();
}
}
}