GridBagLayout: Direction of Addition (4)

void init() {
    gridbag = new GridBagLayout();
    setLayout(gridbag);
    
    c = new GridBagConstraints();
    c.weightx = 1.0;
    c.fill = GridBagConstraints.BOTH;

    makeButtons();
}


Slide 73 ©Copyright 1997 Jan Newmarch