GridBagLayout: Direction of Addition (5)

void makeButtons() {
    btn1 = new Button("Push Me 1"); add(btn1);
    btn2 = new Button("Push Me 2"); add(btn2);
    btn3 = new Button("Push Me 3"); add(btn3);
    btn4 = new Button("Push Me 4"); add(btn4);
    btn5 = new Button("Push Me 5"); add(btn5);
    btn6 = new Button("Push Me 6"); add(btn6);
}


Slide 74 ©Copyright 1997 Jan Newmarch