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.

/** An example of RowLayout calculating preferred size.
 * @see RowLayout
 */

public class RowLayoutTest2 extends Applet {
  public void init() {
    Panel p = new Panel();
    p.setBackground(Color.gray);
    p.setLayout(new RowLayout(5, 5));
    p.add(new Button("Test One"));
    p.add(new Button("Test Two"));
    p.add(new Button("Test Three"));
    add(p);
  }
} 

