Write an applet to demonstrate drawArc() and fillArc() method

0
740
Want create site? Find Free WordPress Themes and plugins.
 /*Write an applet to demonstrate drawArc() and fillArc() method.*/
import java.awt.*;
import java.applet.*;
/*
<applet code="A.class" width=400 height=450></applet>
*/
public class A extends Applet
{
public void paint(Graphics g)
{	
g.setColor(Color.magenta);
g.fillArc(50,50,100,100,5,60);
g.setColor(Color.black);
g.drawArc(100,160,100,100,65,120);
}
}
Did you find apk for android? You can find new Free Android Games and apps.

LEAVE A REPLY