Examples of OwnPreferences


Examples of xplanetconfigurator.util.OwnPreferences

        prefs.putInt(JDialogFind.FRAME_HEIGHT, h);
        prefs.putInt(JDialogFind.FRAME_WIDTH, w);
    }

    private void restoreUserSettings() {
        OwnPreferences prefs =
                OwnPreferences.userNodeForPackage(this.getClass());

        int minWidth = 470;
        int minHeight = 140;
        int x = prefs.getInt(JDialogFind.FRAME_X, 10);
        int y = prefs.getInt(JDialogFind.FRAME_Y, 10);
        int h = prefs.getInt(JDialogFind.FRAME_HEIGHT, minHeight);
        int w = prefs.getInt(JDialogFind.FRAME_WIDTH, minWidth);

        this.setSize(new Dimension(w, h));

        if (w == 470 && h == 140) {
            this.setLocationRelativeTo(null); //center it
View Full Code Here

Examples of xplanetconfigurator.util.OwnPreferences

        int y = this.getY();
        Dimension d = this.getSize();
        int h = (int) d.getHeight();
        int w = (int) d.getWidth();

        OwnPreferences prefs =
                OwnPreferences.userNodeForPackage(this.getClass());

        prefs.putInt(FRAME_X, x);
        prefs.putInt(FRAME_Y, y);
        prefs.putInt(FRAME_HEIGHT, h);
        prefs.putInt(FRAME_WITH, w);
    }
View Full Code Here

Examples of xplanetconfigurator.util.OwnPreferences

        prefs.putInt(FRAME_HEIGHT, h);
        prefs.putInt(FRAME_WITH, w);
    }

    private void loadUserPrefs() {
        OwnPreferences prefs =
                OwnPreferences.userNodeForPackage(this.getClass());

        int x = prefs.getInt(FRAME_X, 10);
        int y = prefs.getInt(FRAME_Y, 10);
        int h = prefs.getInt(FRAME_HEIGHT, 500);
        int w = prefs.getInt(FRAME_WITH, 400);

        this.setSize(new Dimension(w, h));
        // System.out.println("Start info = " + info);
        if (x == 10 && y == 10) // First use
        {
View Full Code Here

Examples of xplanetconfigurator.util.OwnPreferences

        this.updateConfiguration();
    }

    private void loadUserPrefs() {
        logger.finer("Getting user preferences...");
        OwnPreferences prefs = OwnPreferences.userNodeForPackage(this.getClass())// Position an size of frame

        int i = prefs.getInt(JPanelControlDownloaderSatellites.GUI_DIVIDER_LOCATION_HORIZONTAL, 300);
        this.jSplitPaneMain.setDividerLocation(i);
    }
View Full Code Here

Examples of xplanetconfigurator.util.OwnPreferences

        int i = prefs.getInt(JPanelControlDownloaderSatellites.GUI_DIVIDER_LOCATION_HORIZONTAL, 300);
        this.jSplitPaneMain.setDividerLocation(i);
    }

    private void saveUserPrefs() {
        OwnPreferences prefs = OwnPreferences.userNodeForPackage(this.getClass());
        prefs.putInt(JPanelControlDownloaderSatellites.GUI_DIVIDER_LOCATION_HORIZONTAL, this.jSplitPaneMain.getDividerLocation());
    }
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.