Package systeminformationmonitor.system.object

Examples of systeminformationmonitor.system.object.JavaInformationObject


* @author Leo Xu
*/
public class JavaInformation {

    public static JavaInformationObject getJavaInformation() {
        JavaInformationObject javaObj = new JavaInformationObject();
        javaObj.setJvmVersion(System.getProperty("java.vm.version"));
        javaObj.setJvmVendor(System.getProperty("java.vm.vendor"));
        javaObj.setJavaHome(System.getProperty("java.home"));

        return javaObj;
    }
View Full Code Here


        final JavaEnvDialog javaInformationDialog = new JavaEnvDialog(getFrame(), true);
        javaInformationDialog.addWindowListener(new java.awt.event.WindowAdapter() {

            @Override
            public void windowOpened(WindowEvent e) {
                JavaInformationObject javaOjb =
                        JavaInformation.getJavaInformation();
                javaInformationDialog.setJavaHomeTextField(javaOjb.getJavaHome());
                javaInformationDialog.setJavaVMVendorTextField(javaOjb.getJvmVendor());
                javaInformationDialog.setJavaVersionTextField(javaOjb.getJvmVersion());
            }
        });

        XYCoord xyp = CalcDialogCenter.getDialogCenterLocation(getFrame(), javaInformationDialog);
        javaInformationDialog.setLocation(xyp.getX(), xyp.getY());
View Full Code Here

TOP

Related Classes of systeminformationmonitor.system.object.JavaInformationObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.