clearAll function implemente

This commit is contained in:
7u83 2017-04-14 07:06:37 +02:00
parent 9653a789f1
commit 2b025c40a2
3 changed files with 13 additions and 11 deletions

View File

@ -1,4 +1,4 @@
#Tue, 11 Apr 2017 19:27:26 +0200
#Thu, 13 Apr 2017 20:27:39 +0200
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=

View File

@ -213,10 +213,6 @@ public class Globals {
prefs.put(PrefKeys.STRATEGIES, cfgs.toString());
}
public static class FileKeys {
}
@ -253,6 +249,12 @@ public class Globals {
putTraders(traders);
}
public static void clearAll(){
putStrategies(new JSONObject());
putTraders(new JSONArray());
}
public static void loadFile(File f) throws IOException {

View File

@ -76,13 +76,13 @@ public class SeSimApplication extends javax.swing.JFrame {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsDevice[] screens = ge.getScreenDevices();
Window w = screens[1].getFullScreenWindow();
//Window w = screens[1].getFullScreenWindow();
JFrame dummy = new JFrame(screens[1].getDefaultConfiguration());
// JFrame dummy = new JFrame(screens[1].getDefaultConfiguration());
setLocationRelativeTo(dummy);
dummy.dispose();
// setLocationRelativeTo(dummy);
// dummy.dispose();
for (GraphicsDevice gd:screens){
//Window w = gd.getFullScreenWindow();
@ -864,7 +864,7 @@ public class SeSimApplication extends javax.swing.JFrame {
}//GEN-LAST:event_closeMenuItemActionPerformed
private void clearMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearMenuItemActionPerformed
// TODO add your handling code here:
Globals.clearAll();
}//GEN-LAST:event_clearMenuItemActionPerformed
/**