import java.awt.*;
import javax.swing.*;
// simple applete demonstrating changing colors in a loop
// using a variable called b to control the choice
public class Applet2 extends JApplet
{
Thread t = new Thread();;
public void paint(Graphics g)
{
g.setColor(Color.blue);
g.fillOval(100,100,50,50);
g.fillOval(100,150,50,50);
g.fillOval(100,200,50,50);
try{t.sleep(200);} catch(Exception e){}
}
}