FileDocCategorySizeDatePackage
Border.javaAPI DocExample578Thu Feb 03 08:18:06 GMT 2000None

Border.java

// File:  Border.java

// T Balls

// Mar 1998

// Demo of BorderLayout



import java.awt.*;



public class Border extends Frame

{  public Border()

   {  setTitle( "Border" );

      setSize( 200, 300 );

      setBackground( Color.red );

      add( "North", new TextField( "", 0 ) );

      add( "South", new Label( "Bottom of screen" ) );

      add( "West", new Button( "West" ) );

      add( "East", new Button( "East-side" ) );

      setVisible( true );

   }



   public static void main( String[] args )

   {  new Border();

   }  

}