Examples of OwnPreferences


Examples of xplanetconfigurator.util.OwnPreferences

     * Fills the components like text fielsd. Leaves the default values if no
     * value is found in the user preferences. The values where set prior to this
     * operation to default values.
     */
    private void loadUserPrefsGUI() {
        OwnPreferences prefs =
                OwnPreferences.userNodeForPackage(this.getClass());

        // Position frame
        int x = prefs.getInt(JFrameProxyConfigurator.FRAME_X, 10);
        int y = prefs.getInt(JFrameProxyConfigurator.FRAME_Y, 10);
        int w = prefs.getInt(JFrameProxyConfigurator.FRAME_W, 10);
        int h = prefs.getInt(JFrameProxyConfigurator.FRAME_H, 10);


        this.pack();
        if (x == 10 && y == 10) // Default = first useage
        {
View Full Code Here

Examples of xplanetconfigurator.util.OwnPreferences

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

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

        // Frame position an size
        prefs.putInt(JFrameProxyConfigurator.FRAME_X, x);
        prefs.putInt(JFrameProxyConfigurator.FRAME_Y, y);
        prefs.putInt(JFrameProxyConfigurator.FRAME_H, h);
        prefs.putInt(JFrameProxyConfigurator.FRAME_W, w);
    }
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(JPanelControlDownloaderMarkers.GUI_DIVIDER_LOCATION_HORIZONTAL, 300);
        this.jSplitPaneMain.setDividerLocation(i);
    }
View Full Code Here

Examples of xplanetconfigurator.util.OwnPreferences

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

    private void saveUserPrefs() {
        OwnPreferences prefs = OwnPreferences.userNodeForPackage(this.getClass());
        prefs.putInt(JPanelControlDownloaderMarkers.GUI_DIVIDER_LOCATION_HORIZONTAL, this.jSplitPaneMain.getDividerLocation());
    }
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, 130);
        int w = prefs.getInt(FRAME_WITH, 500);

        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

        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, 600);
        int w = prefs.getInt(FRAME_WITH, 500);

        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(JPanelControlDownloaderArcs.GUI_DIVIDER_LOCATION_HORIZONTAL, 300);
        this.jSplitPaneMain.setDividerLocation(i);
    }
View Full Code Here

Examples of xplanetconfigurator.util.OwnPreferences

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

    private void saveUserPrefs() {
        OwnPreferences prefs = OwnPreferences.userNodeForPackage(this.getClass());
        prefs.putInt(JPanelControlDownloaderArcs.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.