/*
 * glLayout.java    97/07/08
 *
 * Modifications by BF Caviness
 */



import java.awt.*;

/**
 *
 * This is a corrected version of the program in Figure 6.6, p. 121
 * of the book "Late Night Advanced Java."  The only change is the
 * use of the method <code>setSize()</code> instead of the deprecated
 * method <code>resize()</code>.  Here is the output produced by the 
 * program.
 * <p>
 * <img src="glLayout.gif">
 *
 */

class glLayout extends Frame
{
    glLayout()
    {
        setLayout( new GridLayout( 2,2 ));
        add( new Button( "North" ));
        add( new Button( "South" ));
        add( new Button( "East" ));
        add( new Button( "West" ));
        setSize( 200,100 );
    }

    public static void main( String arg[] )
    {
        new glLayout().show();
    }
}
