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 ungrouped buttons in an Applet using FlowLayout. */

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

