diff --git a/nbproject/project.properties b/nbproject/project.properties
index dfb8e34..af17f03 100644
--- a/nbproject/project.properties
+++ b/nbproject/project.properties
@@ -1,4 +1,4 @@
-#Sat, 08 Apr 2017 12:15:15 +0200
+#Sat, 08 Apr 2017 16:28:12 +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 3159566..caf5d1c 100644
--- a/src/gui/Globals.java
+++ b/src/gui/Globals.java
@@ -27,7 +27,9 @@ package gui;
import java.io.File;
import java.io.FileNotFoundException;
+import java.io.IOException;
import java.io.PrintWriter;
+import java.nio.file.Files;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
@@ -47,6 +49,10 @@ import sesim.AutoTraderLoader;
* @author 7u83 <7u83@mail.ru>
*/
public class Globals {
+
+ public static final String SESIM_FILEEXTENSION = "sesim";
+ public static final String SESIM_APPTITLE = "SeSim - Stock Exchange Simulator";
+
public interface CfgListener {
@@ -80,6 +86,7 @@ public class Globals {
*/
public static final class PrefKeys{
public static String WORKDIR = "workdir";
+ public static final String CURRENTFILE = "currentfile";
}
static public Preferences prefs;
@@ -192,10 +199,11 @@ public class Globals {
public static final String SESIMVERSION = "sesim_version";
public static final String STRATEGIES = "strategies";
public static final String TRADERS = "traders";
- public static final String SESIM_EXTENSION = "sesim";
+
}
- static void saveFile(File f) throws FileNotFoundException {
+
+ public static void saveFile(File f) throws FileNotFoundException {
JSONObject sobj = new JSONObject();
@@ -212,5 +220,11 @@ public class Globals {
out.close();
}
+
+ public static void loadFile(File f) throws IOException {
+ String s = new String(Files.readAllBytes(f.toPath()));
+ JSONObject sobj = new JSONObject(s);
+
+ }
}
diff --git a/src/gui/SeSimApplication.form b/src/gui/SeSimApplication.form
index f4e9fd1..32708d8 100644
--- a/src/gui/SeSimApplication.form
+++ b/src/gui/SeSimApplication.form
@@ -53,15 +53,17 @@
-