FileDocCategorySizeDatePackage
Flow.javaAPI DocExample582Thu Feb 03 08:18:06 GMT 2000None

Flow.java

// File:  Flow.java
// T Balls
// Mar 1998
// Demo of FlowLayout

import java.awt.*;

public class Flow extends Frame
{  public Flow()
   {  setTitle( "Flow" );
      setSize( 100, 100 );
      setLayout( new FlowLayout( FlowLayout.CENTER ) );
      add( new Button( "1" ) );
      add( new Button( "TWO" ) );
      add( new Button( "3" ) );
      add( new Button( "four" ) );
      add( new Button( "*** FIVE ***" ) );
      add( new Button( "-6-" ) );
      setVisible( true );
   }

   public static void main( String[] args )
   {  new Flow();
   }
}