mapPreviewW.setVisible(false);
    public BoardSelectionDialog(ClientGUI client) {        super(client.frame, Messages.getString("BoardSelectionDialog.EditBoardLaout"), true); //$NON-NLS-1$        this.client = client;        mapSettings = (MapSettings) client.getClient().getMapSettings().clone();        setResizable(true);        randomMapDialog = new RandomMapDialog(client.frame, this, mapSettings);        setupMapSize();        setupSelected();        setupAvailable();        setupButtons();        butChange.addActionListener(this);                // layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        getContentPane().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);        getContentPane().add(panMapSize);        gridbag.setConstraints(panBoardsSelected, c);        getContentPane().add(panBoardsSelected);        c.fill = GridBagConstraints.HORIZONTAL;        gridbag.setConstraints(butChange, c);        getContentPane().add(butChange);        c.fill = GridBagConstraints.BOTH;        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(panBoardsAvailable, c);        getContentPane().add(panBoardsAvailable);        gridbag.setConstraints(panButtons, c);        getContentPane().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);    }