Draw Oval in java applet

Hello Friends, 

Today I will explain how can we draw Oval in java applet.
In this  program I have print simple Oval but you can draw different shapes with different size.
   import java.applet.*;
import java.awt.*;
import java.awt.event.*;

/*


*/

public class oval extends Applet
{
public void paint(Graphics g)
{
g.drawOval(10,10,50,50);
g.fillOval(200,30,60,100);
g.drawString("This is circle & oval.",40,90);
}
}

Leave a Reply

Your email address will not be published. Required fields are marked *