FileDocCategorySizeDatePackage
Flow.javaAPI DocExample556Sun Mar 01 22:50:52 GMT 1998None

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();
   }
}