import java.awt.*;
import java.awt.geom.*;
import javax.swing.*;public class CricleTest
{  
   public static void main(String[] args)
   {  
      CricleFrame frame = new CricleFrame();
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      frame.show();
   }
}
class CricleFrame extends JFrame
{
   public CricleFrame()
   {
      setTitle("Cricle");
      setSize(WIDTH, HEIGHT);            CriclePanel panel = new CriclePanel();
      Container contentPane = getContentPane();
      contentPane.add(panel);
   }   public static final int WIDTH = 400;
   public static final int HEIGHT = 400;  
}
class CriclePanel extends JPanel
{  
   public void paintComponent(Graphics g)
   {  
      super.paintComponent(g);
      Graphics2D g2 = (Graphics2D)g;    g.drawOval(100,100,100,100);      
   }
}