Image imgSplash = frame.getToolkit().getImage("data/images/megamek-splash.jpg");
Image imgSplash = frame.getToolkit().getImage("data/images/misc/megamek-splash.jpg");
    public void showMainMenu() {        Button hostB, connectB, botB, editB, scenB, loadB, quitB;        Label labVersion = new Label();        labVersion.setText(Messages.getString("MegaMek.Version") + VERSION); //$NON-NLS-1$        hostB = new Button(Messages.getString("MegaMek.hostNewGame.label")); //$NON-NLS-1$        hostB.setActionCommand("fileGameNew"); //$NON-NLS-1$        hostB.addActionListener(this);        scenB = new Button(Messages.getString("MegaMek.hostScenario.label")); //$NON-NLS-1$        scenB.setActionCommand("fileGameScenario"); //$NON-NLS-1$        scenB.addActionListener(this);        loadB = new Button(Messages.getString("MegaMek.hostSavedGame.label")); //$NON-NLS-1$        loadB.setActionCommand("fileGameOpen"); //$NON-NLS-1$        loadB.addActionListener(this);        connectB = new Button(Messages.getString("MegaMek.Connect.label")); //$NON-NLS-1$        connectB.setActionCommand("fileGameConnect"); //$NON-NLS-1$        connectB.addActionListener(this);        botB = new Button(Messages.getString("MegaMek.ConnectAsBot.label")); //$NON-NLS-1$        botB.setActionCommand("fileGameConnectBot"); //$NON-NLS-1$        botB.addActionListener(this);        editB = new Button(Messages.getString("MegaMek.MapEditor.label")); //$NON-NLS-1$        editB.setActionCommand("fileBoardNew"); //$NON-NLS-1$        editB.addActionListener(this);        quitB = new Button(Messages.getString("MegaMek.Quit.label")); //$NON-NLS-1$        quitB.setActionCommand("quit"); //$NON-NLS-1$        quitB.addActionListener(this);        // initialize splash image        Image imgSplash = frame.getToolkit().getImage("data/images/megamek-splash.jpg"); //$NON-NLS-1$        // 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.anchor = GridBagConstraints.WEST;        c.insets = new Insets(4, 4, 1, 1);        c.ipadx = 10;        c.ipady = 5;        c.gridx = 0;        c.gridy = 0;        c.fill = GridBagConstraints.BOTH;        c.weightx = 1.0;        c.weighty = 1.0;        c.gridwidth = 1;        c.gridheight = 8;        addBag(panTitle, gridbag, c);        c.gridwidth = GridBagConstraints.REMAINDER;        c.weightx = .05;        c.weighty = 1.0;        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();    }