clearAll function implemente
This commit is contained in:
parent
9653a789f1
commit
2b025c40a2
@ -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=true
|
||||||
annotation.processing.enabled.in.editor=false
|
annotation.processing.enabled.in.editor=false
|
||||||
annotation.processing.processors.list=
|
annotation.processing.processors.list=
|
||||||
|
@ -213,10 +213,6 @@ public class Globals {
|
|||||||
prefs.put(PrefKeys.STRATEGIES, cfgs.toString());
|
prefs.put(PrefKeys.STRATEGIES, cfgs.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class FileKeys {
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -254,6 +250,12 @@ public class Globals {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void clearAll(){
|
||||||
|
putStrategies(new JSONObject());
|
||||||
|
putTraders(new JSONArray());
|
||||||
|
}
|
||||||
|
|
||||||
public static void loadFile(File f) throws IOException {
|
public static void loadFile(File f) throws IOException {
|
||||||
|
|
||||||
f.getAbsoluteFile();
|
f.getAbsoluteFile();
|
||||||
|
@ -77,12 +77,12 @@ public class SeSimApplication extends javax.swing.JFrame {
|
|||||||
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
|
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
|
||||||
GraphicsDevice[] screens = ge.getScreenDevices();
|
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);
|
// setLocationRelativeTo(dummy);
|
||||||
dummy.dispose();
|
// dummy.dispose();
|
||||||
|
|
||||||
for (GraphicsDevice gd:screens){
|
for (GraphicsDevice gd:screens){
|
||||||
//Window w = gd.getFullScreenWindow();
|
//Window w = gd.getFullScreenWindow();
|
||||||
@ -864,7 +864,7 @@ public class SeSimApplication extends javax.swing.JFrame {
|
|||||||
}//GEN-LAST:event_closeMenuItemActionPerformed
|
}//GEN-LAST:event_closeMenuItemActionPerformed
|
||||||
|
|
||||||
private void clearMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearMenuItemActionPerformed
|
private void clearMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_clearMenuItemActionPerformed
|
||||||
// TODO add your handling code here:
|
Globals.clearAll();
|
||||||
}//GEN-LAST:event_clearMenuItemActionPerformed
|
}//GEN-LAST:event_clearMenuItemActionPerformed
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user