Graphic Java

The student has been using color in Java for quite some time, but the student may not know all the pre-defined colors available in the Color class. These colors are:


You use these pre-defined color values to set a color like this:
  g.setColor(Color.green);
EXAMPLE: The student will create an applet like the one shown here. This activity provides the student with practice using predefined colors.
x

ASSIGNMENT:
Recreate the applet shown above using the all the predefined colors from the Color class.