Write an applet program similar to the one in Listing that displays a picture of a snowman. (Hint: Draw three circles, one above the other. Make the circles progressively smaller from bottom to top. Make the top circle a happy face.)
Listing
Drawing a Happy Faceimport javax.swing.JApplet;import java.awt.Graphics;public class HappyFace extends JApplet{ public void paint(Graphics canvas) { super.paint(canvas); canvas.drawOval(100, 50, 200, 200); canvas.fillOval(155, 100, 10, 20); canvas.fillOval(230, 100, 10, 20); canvas.drawArc(150, 160, 100, 50, 180, 180); } }Applet Output
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.