Draw Arc in Java Applet
import java.awt.*; import java.applet.*; public class Mouth extends Applet { public void paint (Graphics g) { g.drawArc(60, 125, 80, 40, 180, 180); g.fillArc(60, 125, 80, 40, 180, 180); } }
<html> <head> </head> <body> <applet code = "Mouth.class" width = "480" height = "360"></applet> </body> </html>
Output: