示例#1
0
 private Settings defaultSettings() {
   String path;
   // Windows
   path = System.getenv("HOMEPATH");
   // Unix
   if (path == null) {
     path = System.getProperty("user.home");
   }
   Settings defaultSettings = new Settings(12, path, 3, "", 20000);
   defaultSettings.saveSettings();
   return defaultSettings;
 }
示例#2
0
 public void saveSettings() {
   settings.saveSettings();
 }