Fromatting and comments

This commit is contained in:
7u83 2017-09-17 14:54:22 +02:00
parent 5fc03b94a3
commit 7f6f511710

View File

@ -74,21 +74,19 @@ public class SeSimApplication extends javax.swing.JFrame {
Window w = d.getFullScreenWindow();
setLocationRelativeTo(w);
// Set Application title (no file is currently opened)
setTitleWithFileName("");
// check if we are runing the very first time,
// and if: Load a default configuration from our resources
// and if so: Load a default configuration from our resources
boolean init = Globals.prefs.getBoolean("initilized", false);
if (!init){
if (!init) {
resetToDefaults();
Globals.prefs.putBoolean("initilized", true);
}
this.chartSrollPane.setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_NEVER);
}
AutoTraderInterface createTrader(Exchange se, long id, String name, double money, double shares, JSONObject cfg) {
@ -685,7 +683,6 @@ public class SeSimApplication extends javax.swing.JFrame {
return fc;
}
public final void setTitleWithFileName(String filename) {
String name;
name = Globals.SESIM_APPTITLE;
@ -772,7 +769,7 @@ public class SeSimApplication extends javax.swing.JFrame {
}//GEN-LAST:event_editExchangeMenuItemActionPerformed
private void resetToDefaults(){
private void resetToDefaults() {
InputStream is = getClass().getResourceAsStream("/resources/files/defaultcfg.json");
String df = new Scanner(is, "UTF-8").useDelimiter("\\A").next();
@ -884,7 +881,7 @@ public class SeSimApplication extends javax.swing.JFrame {
}//GEN-LAST:event_clearMenuItemActionPerformed
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
ChartTestDialog d = new ChartTestDialog(this,false);
ChartTestDialog d = new ChartTestDialog(this, false);
d.setVisible(true);
}//GEN-LAST:event_jMenuItem1ActionPerformed
@ -928,9 +925,8 @@ public class SeSimApplication extends javax.swing.JFrame {
.getCodeSource()
.getLocation()
.getPath()).toString(); //.getName();
*/
*/
// System.out.printf("Creating Application\n");
new SeSimApplication().setVisible(true);
}
});