Write a Java Applet program to draw Three coloured circles.
import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;
public class ThreeCircleApplet extends Applet {
public void paint(Graphics g) {
// First circle filled with RED color
g.setColor(Color.RED);
g.fillOval(50, 50, 50, 50);
// Second circle filled with GREEN color
g.setColor(Color.GREEN);
g.fillOval(50, 100, 50, 50);
// Third circle filled with YELLOW color
g.setColor(Color.YELLOW);
g.fillOval(50, 150, 50, 50);
}
}
/* <applet code="ThreeCircleApplet" width=200 height=250>
</applet>
*/