runs now on windows

This commit is contained in:
7u83
2017-03-26 21:36:53 +02:00
parent 87f361ac61
commit 608fba2530
5 changed files with 53 additions and 7 deletions

View File

@ -139,6 +139,9 @@ public class EditAutoTraderList extends javax.swing.JPanel {
for (int r = 0; r < model.getRowCount(); r++) {
Boolean e = (Boolean) list.getValueAt(r, list.getColumn("Enabled").getModelIndex());
if (e==null){
continue;
}
if (!e) {
continue;
}

View File

@ -62,9 +62,10 @@ public class NewMDIApplication extends javax.swing.JFrame {
*/
public NewMDIApplication() {
initComponents();
Globals.frame = this;
this.setLocationRelativeTo(this);
this.setTitle("SeSim - Stock Exchange Simmulator");
// Globals.frame = this;
// this.setLocationRelativeTo(this);
System.out.printf("Set title\n");
setTitle("SeSim - Stock Exchange Simmulator");
}
AutoTraderInterface createTraderNew(Exchange se, long id, String name, double money, double shares, JSONObject cfg) {
@ -738,6 +739,8 @@ public class NewMDIApplication extends javax.swing.JFrame {
*/
public static void main(String args[]) throws IllegalAccessException, InstantiationException {
System.out.printf("Main called\n");
Globals.initGlobals();
//System.exit(0);
Globals.se = new Exchange();
@ -750,11 +753,14 @@ public class NewMDIApplication extends javax.swing.JFrame {
java.awt.EventQueue.invokeLater(new Runnable() {
@Override
public void run() {
System.out.printf("In run method now\n");
String x = new java.io.File(NewMDIApplication.class.getProtectionDomain()
.getCodeSource()
.getLocation()
.getPath()).toString(); //.getName();
System.out.printf("Creating Application\n");
new NewMDIApplication().setVisible(true);
}
});