diff --git a/nbproject/project.properties b/nbproject/project.properties
index 93ffbf1..864fce9 100644
--- a/nbproject/project.properties
+++ b/nbproject/project.properties
@@ -1,4 +1,4 @@
-#Sat, 08 Apr 2017 22:54:05 +0200
+#Sun, 09 Apr 2017 00:33:50 +0200
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
diff --git a/src/gui/Globals.java b/src/gui/Globals.java
index fb9e6b6..cfca00e 100644
--- a/src/gui/Globals.java
+++ b/src/gui/Globals.java
@@ -219,6 +219,7 @@ public class Globals {
}
+
public static void saveFile(File f) throws FileNotFoundException {
JSONObject sobj = new JSONObject();
@@ -237,12 +238,7 @@ public class Globals {
}
- public static void loadFile(File f) throws IOException {
-
- f.getAbsoluteFile();
-
- String s;
- s = new String(Files.readAllBytes(f.toPath()));
+ public static void loadString(String s) throws IOException{
JSONObject sobj = new JSONObject(s);
Double version = sobj.getDouble(PrefKeys.SESIMVERSION);
@@ -257,5 +253,15 @@ public class Globals {
putTraders(traders);
}
+
+ public static void loadFile(File f) throws IOException {
+
+ f.getAbsoluteFile();
+ String s;
+ s = new String(Files.readAllBytes(f.toPath()));
+
+ loadString(s);
+
+ }
}
diff --git a/src/gui/MainChart.java b/src/gui/MainChart.java
index b3e0e00..546d569 100644
--- a/src/gui/MainChart.java
+++ b/src/gui/MainChart.java
@@ -88,7 +88,7 @@ public class MainChart extends chart.Chart {
1 * 24 * 3600 * 1000, 2 * 24 * 3600 * 1000
};
- private final Integer default_cmopression = 60 * 1000;
+ private final Integer default_cmopression = 60 * 60 * 1000;
private void initCtxMenu() {
ButtonGroup group = new ButtonGroup();
diff --git a/src/gui/SeSimApplication.form b/src/gui/SeSimApplication.form
index 32708d8..9e9fd6b 100644
--- a/src/gui/SeSimApplication.form
+++ b/src/gui/SeSimApplication.form
@@ -53,17 +53,6 @@