scrMapButtons.add(panMapButtons);
    private void setupMapSize() {        refreshMapSize();        refreshMapButtons();        scrMapButtons.add(panMapButtons);                // layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        panMapSize.setLayout(gridbag);        c.insets = new Insets(1, 1, 1, 1);        c.fill = GridBagConstraints.HORIZONTAL;        c.weightx = 1.0;        c.weighty = 0.0;        c.gridwidth = 1;        gridbag.setConstraints(labBoardSize, c);        panMapSize.add(labBoardSize);        gridbag.setConstraints(texBoardWidth, c);        panMapSize.add(texBoardWidth);        gridbag.setConstraints(labBoardDivider, c);        panMapSize.add(labBoardDivider);        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(texBoardHeight, c);        panMapSize.add(texBoardHeight);        c.gridwidth = 1;        gridbag.setConstraints(labMapSize, c);        panMapSize.add(labMapSize);        gridbag.setConstraints(texMapWidth, c);        panMapSize.add(texMapWidth);        gridbag.setConstraints(labMapDivider, c);        panMapSize.add(labMapDivider);        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(texMapHeight, c);        panMapSize.add(texMapHeight);        c.fill = GridBagConstraints.BOTH;        c.weightx = 1.0;        c.weighty = 1.0;        gridbag.setConstraints(scrMapButtons, c);        panMapSize.add(scrMapButtons);    }