butDone = new Button("I'm Done"); butDone.setActionCommand("ready"); butDone.addActionListener(this);
    public ChatLounge(Client client) {        super();        this.client = client;        // Create a new camo selection dialog.        camoDialog = new CamoChoiceDialog( client.getFrame() );        client.addGameListener(this);        client.game.board.addBoardListener(this);        butOptions = new Button("Game Options...");        butOptions.addActionListener(this);                setupPlayerInfo();        setupMinefield();                setupBoardSettings();        refreshGameSettings();                    setupEntities();        refreshEntities();                    setupBVs();        refreshBVs();                setupStarts();        refreshStarts();                setupMainPanel();                labStatus = new Label("", Label.CENTER);                        butDone = new Button("I'm Done");        butDone.setActionCommand("ready");        butDone.addActionListener(this);                        // layout main thing        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        setLayout(gridbag);                        c.fill = GridBagConstraints.BOTH;        c.weightx = 1.0;    c.weighty = 1.0;        c.insets = new Insets(1, 1, 1, 1);        c.gridwidth = GridBagConstraints.REMAINDER;        addBag(panMain, gridbag, c);        c.weightx = 1.0;    c.weighty = 0.0;        addBag(labStatus, gridbag, c);        c.gridwidth = 1;        c.weightx = 1.0;    c.weighty = 0.0;        addBag(client.cb.getComponent(), gridbag, c);        c.gridwidth = GridBagConstraints.REMAINDER;        c.weightx = 0.0;    c.weighty = 0.0;        addBag(butDone, gridbag, c);                validate();    }