import java.awt.*; import java.applet.Applet; public class Ringid extends Applet{ public void paint (Graphics g) { for (int y=0; y<20; y=y+1){ for (int x= 50; x<150; x=x+10){ g.setColor (Color.red); g.drawOval (100, 100, x, x); g.setColor (Color.blue); g.drawOval (300, 300, x, x); g.setColor (Color.yellow); g.drawOval (600, 100, x, x); try{Thread.sleep(500);}catch(Exception e){} g.setColor(Color.white); g.fillRect(0, 0, getSize().width, getSize().height); } } } }