import java.awt.*;
class a2 extends Frame
{
public static void main(String args[])
{
a2 a=new a2();
a.setTitle("oval");
a.setSize(500,500);
a.setVisible(true);
//a.show();
}
public void paint(Graphics g)
{
g.drawOval(300,100,50,50);
g.drawOval(40,250,100,50);
}
}
No comments:
Post a Comment