randomMapDialog = new RandomMapDialog(client.frame, this, mapSettings);
    public BoardSelectionDialog(Client client) {        super(client.frame, "Edit Board Layout...", true);        this.client = client;        this.mapSettings = (MapSettings)client.getMapSettings().clone();        setResizable(true);                setupMapSize();        setupSelected();        setupAvailable();        setupButtons();                butChange.addActionListener(this);                // layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        this.setLayout(gridbag);                    c.fill = GridBagConstraints.BOTH;        c.insets = new Insets(4, 4, 4, 4);        c.weightx = 1.0;    c.weighty = 1.0;        c.gridwidth = 1;        gridbag.setConstraints(panMapSize, c);        this.add(panMapSize);                    gridbag.setConstraints(panBoardsSelected, c);        this.add(panBoardsSelected);                    c.fill = GridBagConstraints.HORIZONTAL;        gridbag.setConstraints(butChange, c);        this.add(butChange);                    c.fill = GridBagConstraints.BOTH;        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(panBoardsAvailable, c);        this.add(panBoardsAvailable);                    gridbag.setConstraints(panButtons, c);        this.add(panButtons);                        addWindowListener(new WindowAdapter() {	    public void windowClosing(WindowEvent e) { setVisible(false); }	});                pack();        setResizable(false);        setLocation(client.frame.getLocation().x + client.frame.getSize().width/2 - getSize().width/2,                    client.frame.getLocation().y + client.frame.getSize().height/2 - getSize().height/2);    }