.append( "\nJava Vendor " ) .append( System.getProperty("java.vendor") ) .append( "\nJava Version " ) .append( System.getProperty("java.version") );
.append( Messages.getString("CommonAboutDialog.javaVendor") ) .append( System.getProperty("java.vendor") ) .append( Messages.getString("CommonAboutDialog.javaVersion") ) .append( System.getProperty("java.version") );
    public CommonAboutDialog( Frame frame ) {        // Construct the superclass.        super( frame, "About MegaMek" );        // Make sure we close at the appropriate times.        this.addWindowListener(new WindowAdapter() {                public void windowClosing(WindowEvent e) {                    quit();                }            } );        // Make a splash image panel.        BufferedPanel panTitle = new BufferedPanel();        Image imgSplash = CommonAboutDialog.getTitleImage( frame );        BackGroundDrawer bgdTitle = new BackGroundDrawer( imgSplash );        panTitle.addBgDrawer(bgdTitle);        panTitle.setPreferredSize( imgSplash.getWidth(null),                                    imgSplash.getHeight(null) );        // Make a label containing the version of this app.        StringBuffer buff = new StringBuffer();        buff.append( "MegaMek version " )            .append( megamek.MegaMek.VERSION )            .append( "\nTimestamp " )            .append( new Date(megamek.MegaMek.TIMESTAMP).toString() )            .append( "\nJava Vendor " )            .append( System.getProperty("java.vendor") )            .append( "\nJava Version " )            .append( System.getProperty("java.version") );        AdvancedLabel lblVersion = new AdvancedLabel( buff.toString() );        // Create the copyright.        buff = new StringBuffer();        buff.append( "MegaMek Copyright 2000,2001,2002,2003,2004,2005 Ben Mazur\n\n" )            .append( "BattleTech, BattleMech, 'Mech, and MechWarrior are registered trademarks of\n" )            .append( "WizKids, LLC. Original BattleTech material Copyright by  WizKids, LLC.\n" )            .append( "All Rights Reserved.  Used without permission." );        AdvancedLabel lblCopyright = new AdvancedLabel( buff.toString() );                // Give us some "about" text.        buff = new StringBuffer();        buff.append( "MegaMek is community effort to implement the Classic BattleTech rules in an\n" )            .append( "operating-system-agnostic, network enabled manner. MegaMek is distributed\n" )            .append( "under the GNU General Public License. A copy of the liscense should be avail-\n" )            .append( "able in the installation directory. If you've enjoyed playing MegaMek, please share\n" )            .append( "it with a friend. If you'd like to improve it, please be aware that your contributions\n" )            .append( "must ALSO be distributed under the GNU General Public License, Version 2 or later.\n" );        AdvancedLabel lblAbout = new AdvancedLabel( buff.toString() );        // Add a "Close" button.        Button butClose = new Button( "Close" );        butClose.addActionListener( new ActionListener() {                public void actionPerformed( ActionEvent event ) {                    quit();                }            } );        // Layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        this.setLayout(gridbag);        c.fill = GridBagConstraints.BOTH;        c.anchor = GridBagConstraints.NORTH;        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.gridy = 0;        this.add(panTitle, c);        c.weighty = 1.0;        c.fill = GridBagConstraints.HORIZONTAL;        c.gridy = 1;        this.add(lblVersion, c);        c.gridy = 2;        this.add(lblCopyright, c);        c.gridy = 3;        this.add(lblAbout, c);        c.gridy = 4;        this.add(butClose, c);        // Place this dialog on middle of screen.        Dimension screenSize = frame.getToolkit().getScreenSize();        this.pack();        this.setLocation(            screenSize.width / 2 - this.getSize().width / 2,            screenSize.height / 2 - this.getSize().height / 2);        // Stop allowing resizing.        this.setResizable( false );    }