import java.awt.*;
import java.applet.*;
/*
<applet code="appletdemo" height="400" width="500">
</applet>
*/
public class appletdemo extends Applet
{
public void paint(Graphics g)
{
try
{
for (int i=10;i<=100 ;i=i+10 )
{
g.drawOval(200-i/2,200-i/2,i,i);
Thread.sleep(100); // To generate a delay n miliseconds
}
}
catch(Exception e)
{
}
}
};
Technorati Tags : JAVA Concentric Circles Program
No comments:
Post a Comment