// Programming Projects: Question 7.15
// Design and implement an applet that draws a bullseye
// by drawing five concentric circles centred around two
// lines forming a crosshair.  Fill every other circle
// with a different colour.

import java.applet.Applet;
import java.awt.*;

public class Q7_16 extends Applet {

  public void paint (Graphics page) {

    // Set applet background colour to white
    setBackground (Color.white);

    // Draw green outer circle
    page.setColor (Color.blue);
    page.fillOval (100,100,200,200);

    // Draw orange circle
    page.setColor (Color.green);
    page.fillOval (120,120,160,160);

    // Draw yellow circle
    page.setColor (Color.yellow);
    page.fillOval (140,140,120,120);

    // Draw blue circle
    page.setColor (Color.orange);
    page.fillOval (160,160,80,80);

    // Draw red circle
    page.setColor (Color.red);
    page.fillOval (180,180,40,40);

    // Draw two lines for the arrows
    page.setColor (Color.black);
    page.drawLine (60,200,100,200);
    page.drawLine (200,200,340,200);

    // Draw three lines for the arrow head
    page.drawLine (340,190,340,210);
    page.drawLine (340,210,360,200);
    page.drawLine (360,200,340,190);
  }
}

