some improvements
This commit is contained in:
parent
3512d4d4e9
commit
1dfc869060
@ -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=
|
||||||
|
@ -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);
|
||||||
|
@ -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(){
|
||||||
|
Loading…
Reference in New Issue
Block a user