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.

/** 8 buttons: 4 each in 2 panels. */

public class ButtonTest2 extends Applet {
  public void init() {
    String[] labelPrefixes = { "Start", "Stop",
                               "Pause", "Resume" };
    Panel p1 = new Panel();
    for (int i=0; i<4; i++)
      p1.add(new Button(labelPrefixes[i] + " Thread1"));
    Panel p2 = new Panel();
    for (int i=0; i<4; i++)
      p2.add(new Button(labelPrefixes[i] + " Thread2"));
    add(p1);
    add(p2);
  }
}

