4 public class VertPanel extends JPanel {
5 GridBagLayout gbLayout;
6 GridBagConstraints cur;
10 setLayout( gbLayout = new GridBagLayout() );
12 cur = new GridBagConstraints();
13 cur.fill = GridBagConstraints.BOTH;
14 cur.gridwidth = GridBagConstraints.REMAINDER;
17 cur.anchor = GridBagConstraints.NORTH;
20 public Component add( Component c ) {
26 gbLayout.setConstraints( c, cur );
27 return super.add( c );