import java.awt.*;
import java.applet.*;
public class OnlyChangeUpdate extends Applet implements Runnable
{
int X,Y,moveX,moveY,width,height;
Thread newThread;
public void init()
{
X=0;
Y=0;
moveX=20;
moveY=20;
width=getSize().width;
height=getSize().height;
setBackground(Color.black);
}
public void start()
{
newThread=new Thread(this);
newThread.start();
}
public void stop()
{
newThread=null;
}
public void paint(Graphics g)
{
g.setColor(Color.white);
g.fillOval(X,Y,15,15);
}
public void update(Graphics g)
{
paint(g);
}