frame.pack();
    public MegaMek() {        this.frame = new Frame("MegaMek");		frame.addWindowListener(new WindowAdapter() {			public void windowClosing(WindowEvent e) {				quit();			}		});        frame.setBackground(SystemColor.menu);        frame.setForeground(SystemColor.menuText);                frame.setIconImage(frame.getToolkit().getImage("data/images/megamek-icon.gif"));        CommonMenuBar menuBar = new CommonMenuBar();        menuBar.addActionListener( this );        frame.setMenuBar( menuBar );        showMainMenu();        // echo some useful stuff        System.out.println("Starting MegaMek v" + VERSION + " ...");        System.out.println("Timestamp " + new Date(TIMESTAMP).toString());        System.out.println("Java vendor " + System.getProperty("java.vendor"));        System.out.println("Java version " + System.getProperty("java.version"));        // set visible on middle of screen        Dimension screenSize = frame.getToolkit().getScreenSize();        frame.pack();        frame.setLocation(            screenSize.width / 2 - frame.getSize().width / 2,            screenSize.height / 2 - frame.getSize().height / 2);        // Apparently, the MSJDK doesn't handle the menu bar very well.        Dimension windowSize = frame.getSize();        windowSize.height += 25;        frame.setSize( windowSize );        frame.pack();        // Show the window.        frame.setVisible(true);    }