Code:
import
java.awt.*;
importjava.applet.*;
/*
<applet code = "face" width = 300 height = 300></applet>
*/
public
class face extends Applet
{
public void paint(Graphics g)
{
g.drawOval(40,
40, 120, 150);
g.drawOval(57,
75, 30, 20);
g.drawOval(110,
75, 30, 20);
g.fillOval(68,
81, 10, 10);
g.drawOval(85,
100, 30, 30);
g.fillArc(60,
125, 80, 40, 180, 180);
g.drawOval(25,
92, 15, 30);
g.drawOval(160,
92, 15, 30);
}
}
Comments
Post a Comment