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.

/** Create an EventPanel and a TextArea to get
 *  the EventPanel's reports.
 */

public class Events extends Applet {
  public void init() {
    setBackground(Color.lightGray);
    setLayout(new BorderLayout());
    TextArea reportArea = new TextArea(20, 30);
    reportArea.setEditable(false);
    add("East", reportArea);
    add("Center", new EventPanel(reportArea));
  }
}
