editB.setActionCommand("editor");
editB.setActionCommand("fileBoardNew");
    public void showMainMenu() {        Button hostB, connectB, botB, editB, scenB, loadB, quitB;        Label labVersion = new Label();        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("Host 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);		quitB = new Button("Quit");		quitB.setActionCommand("quit");		quitB.addActionListener(this);				// initialize splash image		Image imgSplash = frame.getToolkit().getImage("data/images/megamek-splash.gif");        // wait for splash image to load completely        MediaTracker tracker = new MediaTracker(frame);        tracker.addImage(imgSplash, 0);        try {            tracker.waitForID(0);        } catch (InterruptedException e) {            ;        }        // make splash image panel        BufferedPanel panTitle = new BufferedPanel();		BackGroundDrawer bgdTitle = new BackGroundDrawer(imgSplash);		panTitle.addBgDrawer(bgdTitle);		panTitle.setPreferredSize(imgSplash.getWidth(null), imgSplash.getHeight(null));				// layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        frame.setLayout(gridbag);        c.fill = GridBagConstraints.BOTH;        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 = 0;		c.gridwidth = 1;		c.gridheight = 8;		addBag(panTitle, gridbag, c);				c.gridwidth = GridBagConstraints.REMAINDER;		c.gridx = 1;		c.gridheight = 1;		c.fill = GridBagConstraints.HORIZONTAL;        c.gridy = 0;		addBag(labVersion, gridbag, c);		c.gridy++;        addBag(hostB, gridbag, c);		c.gridy++;		addBag(loadB, gridbag, c);        c.gridy++;        addBag(scenB, gridbag, c);        c.gridy++;        addBag(connectB, gridbag, c);        c.gridy++;        addBag(botB, gridbag, c);		c.gridy++;		addBag(editB, gridbag, c);		c.gridy++;		addBag(quitB, gridbag, c);				frame.validate();    }