Package manager

Examples of manager.Settings


  // Main
  public static void main(String[] args) {
    String language;
       
        //try to open the settings file
    Application.settings = new Settings();

    if(Application.settings.loadFromFile("settings.xml"))
      language = Application.settings.getLanguage();
    // unable to open the config file
    else {
View Full Code Here


    Application.app = null;
    Application.messages = null;
    System.gc();
   
    // Load the changed settings
    Application.settings = new Settings();
    Application.settings.loadFromFile("settings.xml");
   
        // Create local environment
        Locale currentLocale = new Locale(Application.settings.getLanguage());
        Application.messages = ResourceBundle.getBundle("languages/MessagesBundle", currentLocale);
View Full Code Here

TOP

Related Classes of manager.Settings

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.