//Dharmendra Bagrecha
import java.awt.*;
import java.applet.*;
/*
<APPLET code="Face.class" width=200 height=200>
</Applet>
*/
public class Face extends Applet
{
public void paint(Graphics g)
{
g.drawOval(40,40,120,120);
g.drawOval(57,75,30,20); //eyes
g.drawOval(110,75,30,20);
g.fillOval(68,81,10,10);
g.fillOval(120,81,10,10);
g.drawOval(94,100,15,30); //Nose
g.drawArc(60,105,80,40,180,180); //Mouth
}
}
import java.awt.*;
import java.applet.*;
/*
<APPLET code="Face.class" width=200 height=200>
</Applet>
*/
public class Face extends Applet
{
public void paint(Graphics g)
{
g.drawOval(40,40,120,120);
g.drawOval(57,75,30,20); //eyes
g.drawOval(110,75,30,20);
g.fillOval(68,81,10,10);
g.fillOval(120,81,10,10);
g.drawOval(94,100,15,30); //Nose
g.drawArc(60,105,80,40,180,180); //Mouth
}
}
No comments:
Post a Comment