Posted by : Unknown
Thursday, 2 July 2015
import java.applet.Applet;
import java.awt.Graphics;
public class applet extends Applet
import java.awt.Graphics;
public class applet extends Applet
{
@Override
public void paint(Graphics g)
@Override
public void paint(Graphics g)
{
g.drawArc(10,10,50,50,90,180);
g.fillArc(60,10,60,60,90,180);
}
}
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
import java.awt.Graphics;
public class applet extends Applet
{
@Override
public void paint(Graphics g)
@Override
public void paint(Graphics g)
{
g.drawArc(10,30,120,40,25,130);
g.fillArc(10,80,180,80,25,-110);
}
}
g.drawArc(10,30,120,40,25,130);
g.fillArc(10,80,180,80,25,-110);
}
}