GridLayout (3)

    TestGridLayout()
    {   
        setLayout(new GridLayout(2, 2));

        add new Button("Push Me 1"));
        add(new Button("Push Me 2"));
        add(new Button("Push Me 3"));
        add(new Button("Push Me 4"));
        resize(400, 200);
        setVisible(true);
    }


Slide 68 ©Copyright 1997 Jan Newmarch