Examples of OSInformationObject


Examples of systeminformationmonitor.system.object.OSInformationObject

        sysApp = SystemInformationMonitorApp.getApplication();
    }

    @Override
    public void update() {
        final OSInformationObject osObj = getOSInformation();
        threadLock.lock();
        try {
            SwingUtilities.invokeAndWait(new Runnable() {

                @Override
                public void run() {
                    SystemInformationMonitorView view = sysApp.getView();
                    view.setOSNameTextField(osObj.getName());
                    view.setOSDescriptionTextField(osObj.getDescription());
                    view.setOSArchitectureTextField(osObj.getArchitecture());
                    view.setOSVendorTextField(osObj.getVendor());
                    view.setOSVendorVersionTextField(osObj.getVenderVersion());
                    view.setOSDataModelTextField(osObj.getDataModel());
                    view.setOSCPUEndianTextField(osObj.getOSCPUEndian());
                }
            });
        } catch (InterruptedException ex) {
            Logger.getLogger(OSInformation.class.getName()).log(Level.SEVERE, null, ex);
        } catch (InvocationTargetException ex) {
View Full Code Here

Examples of systeminformationmonitor.system.object.OSInformationObject

            threadLock.unlock();
        }
    }

    private OSInformationObject getOSInformation() {
        OSInformationObject osObj = new OSInformationObject();
        OperatingSystem sys = OperatingSystem.getInstance();
        osObj.setName(sys.getName());
        osObj.setDescription(sys.getDescription());
        osObj.setArchitecture(sys.getArch());
        osObj.setVendor(sys.getVendor());
        osObj.setVenderVersion(sys.getVendorVersion());
        osObj.setDataModel(sys.getDataModel());
        osObj.setOSCPUEndian(sys.getCpuEndian());
        return osObj;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.