Package net.sf.agentopia.util

Examples of net.sf.agentopia.util.Config.save()


        Config conf = Config.getConfig();
        conf.putInt("GUI.WindowWid", frame.getWidth());
        conf.putInt("GUI.WindowHei", frame.getHeight());
        conf.putInt("GUI.WindowX", frame.getX());
        conf.putInt("GUI.WindowY", frame.getY());
        conf.save();

        // Exit.
        System.exit(0);
    }
View Full Code Here


            else {
                Logger.getLogger().info("Update complete. Version is now " + remoteVersion + ".\nPlease restart. Sorry for the inconvenience.");
            }

            // Return.
            conf.save();
            System.exit(0);
        }
        catch (Exception exc) {
            isErrorOccured = true;
            Logger.getLogger().warn(exc, "Internet update had an exception.");
View Full Code Here

        // Make window visible.
        frame.setVisible(true);

        // Signal to other config singleton clients that we have a GUI.
        conf.put("GUI.activate", "true");
        conf.save();
    }

    /**
     * Shuts down everything.
     *
 
View Full Code Here

        Config conf = Config.getConfig();
        conf.putInt("GUI.WindowWid", frame.getWidth());
        conf.putInt("GUI.WindowHei", frame.getHeight());
        conf.putInt("GUI.WindowX", frame.getX());
        conf.putInt("GUI.WindowY", frame.getY());
        conf.save();

        // Exit.
        if (SHOW_LAST_DIALOG) {
            JOptionPane.showMessageDialog(frame, "Shutdown ok, goodbye!");
        }
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.