GridBagLayout: Direction of Addition (6)

GridBagDirection()
{
   init();

   gridbag.setConstraints(btn1, c);

   // btn2 below btn1
   c.gridx = 0;
   c.gridy = GridBagConstraints.RELATIVE;
   gridbag.setConstraints(btn2, c);

   // more coming ...


Slide 75 ©Copyright 1997 Jan Newmarch