menuBar.addActionListener( this ); menuBar.setGame( this.game ); frame.setMenuBar( menuBar );
    private void initializeFrame() {        this.frame = new Frame("MegaMek Client");        if (Settings.windowSizeHeight != 0) {            frame.setLocation(Settings.windowPosX, Settings.windowPosY);            frame.setSize(Settings.windowSizeWidth, Settings.windowSizeHeight);        } else {            frame.setSize(800, 600);        }        frame.setBackground(SystemColor.menu);        frame.setForeground(SystemColor.menuText);        		frame.setIconImage(frame.getToolkit().getImage("data/images/megamek-icon.gif"));		// when frame closes, save settings and clean up.        frame.addWindowListener(new WindowAdapter() {            public void windowClosing(WindowEvent e) {                frame.setVisible(false);                saveSettings();                die();            }        });    }