Graphic Java

Sometimes it is a good idea to fill a circle with one color and to outline it in another color. You do this by following a call to fillOval in one color by a call to drawoval in another color using the exact same parameters. Here's what this would look like:

   g.setColor(Color.white);
   g.fillOval(20,20,100,100);
   g.setColor(Color.black);
   g.drawOval(20,20,100,100);
If you want a really wide edge you might do something like this:
   g.setColor(Color.black);
   g.fillOval(20,20,100,100);
   g.setColor(Color.white);
   g.fillOval(25,25,90,90);
EXAMPLE: This applet is an approximation of what the student will be expected to create. No code will be offered since the student will need to experiment with the use of the fillOval and drawOval methods to successfully complete this activity.
x

ASSIGNMENT:
The student will recreate the design displayed in the applet embedded on this page. The student should notice that the smaller circles are outlined using the first method described at the top of the page, but the large circle in the middle of the applet area is outlined using the second method described at the top of the page.