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

// This appears in Core Web Programming from
// Prentice Hall Publishers, and may be freely used
// or adapted. 1997 Marty Hall, hall@apl.jhu.edu.

public class ColorLists extends Applet {
  public void init() {
    List list1 = new List();
    list1.addItem("Red BG");
    list1.addItem("Yellow BG");
    list1.setBackground(Color.red);
    list1.setForeground(Color.yellow);
    List list2 = new List();
    list2.addItem("Yellow BG");
    list2.addItem("Red BG");
    list2.setBackground(Color.yellow);
    list2.setForeground(Color.red);
    add(list1);
    add(list2);
  }
}

