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.drawArc(10,10,50,50,90,180);
          g.fillArc(60,10,60,60,90,180);
    }
}

Output:

 

 ====================================

import java.applet.Applet;
import java.awt.Graphics;
public class applet extends Applet
{
    @Override
    public void paint(Graphics g) 
    {
         g.drawArc(10,30,120,40,25,130);
         g.fillArc(10,80,180,80,25,-110);
    }
}

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 -