Solution

/**Author: Lynne Grewe  */
/**Description:  Create a Java applet that will read in the
   the background color parameters passed to it that match
   the background color of the webpage.   Then sets the background
   color of the applet equal to this.
  */


import java.awt.Graphics;  //Graphics Classes
import java.applet.Applet; //Applet Class
import java.awt.Color; //Color Class




public class test6 extends Applet {
   public  Color color[] = new Color[2];
   public Color Background;
   public int bgRed, bgGreen, bgBlue;
  

   public void init() {
 
     /*get background color in webpage*/
     bgRed = Integer.parseInt( getParameter("bgRed") );
     bgGreen = Integer.parseInt( getParameter("bgGreen") );
     bgBlue= Integer.parseInt( getParameter("bgBlue") );
     Background = new Color(bgRed, bgGreen, bgBlue);

     /*set colors for drawing*/
     color[0] = new Color(0,0,0);
     color[1] = new Color(255,255,0);

   }//END of init()



  public void paint(Graphics g) {
     /*set background color to applet region*/
     g.setColor( Background );
     g.fillRect(0 ,0, 200, 200);
    
     /*Draw bounding box */
     g.setColor( color[0] );
     g.drawOval(  50,50, 100,100);
    
     /*Write out a message*/
     g.setColor( color[1] );
     g.drawString("Hi Lynne",75,75);
   }

}