Button hostB, connectB, botB, editB, scenB, loadB;
Button hostB, connectB, botB, editB, scenB, loadB, quitB;
    public void showMainMenu() {        Button hostB, connectB, botB, editB, scenB, loadB;        Label labVersion = new Label();        frame.removeAll();        labVersion.setText("MegaMek version " + VERSION);        hostB = new Button("Host a New Game...");        hostB.setActionCommand("game_host");        hostB.addActionListener(this);        scenB = new Button("Host a Scenario...");        scenB.setActionCommand("game_scen");        scenB.addActionListener(this);        loadB = new Button("Load a Saved Game...");        loadB.setActionCommand("game_load");        loadB.addActionListener(this);        connectB = new Button("Connect to a Game...");        connectB.setActionCommand("game_connect");        connectB.addActionListener(this);        botB = new Button("Connect as a Bot...");        botB.setActionCommand("game_botconnect");        botB.addActionListener(this);        editB = new Button("Map Editor");        editB.setActionCommand("editor");        editB.addActionListener(this);        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        frame.setLayout(gridbag);        c.fill = GridBagConstraints.HORIZONTAL;        c.anchor = GridBagConstraints.WEST;        c.weightx = 0.0;    c.weighty = 0.0;        c.insets = new Insets(4, 4, 1, 1);        c.gridwidth = GridBagConstraints.REMAINDER;        c.ipadx = 10;    c.ipady = 5;        c.gridx = 1;        c.gridy = 0;        addBag(labVersion, gridbag, c);        c.gridy++;        addBag(hostB, gridbag, c);        c.gridy++;        addBag(scenB, gridbag, c);        c.gridy++;        addBag(connectB, gridbag, c);        c.gridy++;        addBag(botB, gridbag, c);        c.gridy++;        addBag(loadB, gridbag, c);        c.gridy++;        addBag(editB, gridbag, c);        frame.validate();    }