some improvements

This commit is contained in:
7u83 2017-04-08 07:27:18 +02:00
parent 3512d4d4e9
commit 1dfc869060
4 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#Fri, 07 Apr 2017 22:58:15 +0200 #Sat, 08 Apr 2017 07:10:15 +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=

View File

@ -115,9 +115,9 @@ public class ManTrader extends AutoTraderBase implements AccountListener, AutoTr
@Override @Override
public void accountUpdated(Exchange.Account a, Exchange.Order o) { public void accountUpdated(Exchange.Account a, Exchange.Order o) {
//this.consoleDialog.cons //this.consoleDialog.cons
System.out.printf("AccountListener called\n"); //System.out.printf("AccountListener called\n");
System.out.printf("%d %s\n", o.getID(), o.getOrderStatus().toString()); //System.out.printf("%d %s\n", o.getID(), o.getOrderStatus().toString());
if (o.getOrderStatus()==OrderStatus.CLOSED){ if (o.getOrderStatus()==OrderStatus.CLOSED){
o.getAccount().getOrders().put(o.getID(), o); o.getAccount().getOrders().put(o.getID(), o);

View File

@ -36,12 +36,16 @@ public class ManTraderConsoleDialog extends javax.swing.JDialog {
/** /**
* Creates new form ManTraderConsole * Creates new form ManTraderConsole
* @param parent
* @param modal
* @param account
*/ */
public ManTraderConsoleDialog(java.awt.Frame parent, boolean modal, Account account) { public ManTraderConsoleDialog(java.awt.Frame parent, boolean modal, Account account) {
super(parent, modal); super(parent, modal);
initComponents(); initComponents();
this.ordersList.initOrderList(account); this.ordersList.initOrderList(account);
this.setTitle(account.getOwner().getName()+" - Trading Console"); this.setTitle(account.getOwner().getName()+" - Trading Console");
this.setLocationRelativeTo(parent);
} }
public gui.OpenOrdersList getOrderList(){ public gui.OpenOrdersList getOrderList(){