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.

/** This example illustrates that retrieving the
 *  default layout manager using getLayout and then
 *  changing its characteristics can have global
 *  effects in Java 1.1.
 */

public class ModifiedFlow extends NormalFlow {
  public static void main(String[] args) {
    Panel p = new Panel();
    FlowLayout panelManager = (FlowLayout)p.getLayout();
    panelManager.setAlignment(FlowLayout.LEFT);
    panelManager.setHgap(30);
    panelManager.setVgap(20);
    new ModifiedFlow("Modified FlowLayout Configuration",
                     475, 300, 2);
  }

  public ModifiedFlow(String title,
                      int width, int height,
                      int numPanels) {
    super(title, width, height, numPanels);
  }
}

