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

public class MyApplet extends Applet 
{ 
  public void init() 
  { 
    String BgColor = getParameter("BgColor"); 
    if (BgColor.equals("Rot")) 
    { 
      setBackground(Color.red); 
    } 
    else if (BgColor.equals("Grün")) 
    { 
      setBackground(Color.green); 
    } 
    else if (BgColor.equals("Blau")) 
    { 
      setBackground(Color.blue); 
    } 
  } 
} 
