gridbag.setConstraints(panUnits, c); panMain.add(panUnits);
    private void setupMainPanel() {                panUnits = new Panel(new BorderLayout());        panUnits.add(panEntities, BorderLayout.CENTER);        panUnits.add(panBVs, BorderLayout.EAST);                setupTop();                    panMain = new Panel();                // layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        panMain.setLayout(gridbag);                    c.fill = GridBagConstraints.VERTICAL;        c.insets = new Insets(1, 1, 1, 1);        c.weightx = 1.0;    c.weighty = 0.0;        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(butOptions, c);        panMain.add(butOptions);                    c.weightx = 1.0;    c.weighty = 1.0;        gridbag.setConstraints(panTop, c);        panMain.add(panTop);                    gridbag.setConstraints(panUnits, c);        panMain.add(panUnits);    }