A Complex Layout (2)

 GridBagConstraints c = new GridBagConstraints();
 c.weightx = 0.0;
 c.anchor = GridBagConstraints.EAST;

 GridBagConstraints c2 = new GridBagConstraints();
 c2.gridwidth = GridBagConstraints.REMAINDER;
 c2.weightx = 1.0;
 c2.fill = GridBagConstraints.HORIZONTAL;

 gridbag.setConstraints(nameL, c);
 gridbag.setConstraints(nameT, c2);
 gridbag.setConstraints(phoneL, c);
 gridbag.setConstraints(phoneT, c2);
 gridbag.setConstraints(addressL, c);
 gridbag.setConstraints(addressT, c2);


Slide 90 ©Copyright 1997 Jan Newmarch