Accepted Request (2)

GridBagHeightAccepted()
{
   gridbag.setConstraints(btn1, c);
   c.gridheight = 2;
   gridbag.setConstraints(btn2, c);
   c.gridheight = 3;
   gridbag.setConstraints(btn3, c);
   // these all end rows
   c.gridheight = 1;
   c.gridwidth = GridBagConstraints.REMAINDER;
   gridbag.setConstraints(btn4, c);
   gridbag.setConstraints(btn5, c);
   gridbag.setConstraints(btn6, c);
}


Slide 85 ©Copyright 1997 Jan Newmarch