Posted by : Unknown Thursday, 2 July 2015

import java.applet.Applet;
import java.awt.Graphics;
public class applet extends Applet
{
    @Override
    public void paint(Graphics g) 
    {
         g.drawOval(10,10,30,30);
         g.fillOval(50,50,80,40);
         g.fillOval(150,110,30,60);
    }
}

Output:

Leave a Reply

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Translate

Popular Post

Total Pageviews

- Copyright © Learning Java Program - Powered by Blogger -