Denied Request

Only one row, so height can't be greater than one

   GridBagHeightDenied()
   {
      // all height requests ignored
      gridbag.setConstraints(btn1, c);
      c.gridheight = 2;
      gridbag.setConstraints(btn2, c);
      c.gridheight = 3;
      gridbag.setConstraints(btn3, c);
      c.gridheight = 4;
      gridbag.setConstraints(btn4, c);
      c.gridheight = 5;
      gridbag.setConstraints(btn5, c);
      gridbag.setConstraints(btn6, c);
   }
}


Slide 83 ©Copyright 1997 Jan Newmarch