Statistics are working with low/high etc.
This commit is contained in:
@ -48,6 +48,22 @@ public class Statistics extends javax.swing.JPanel {
|
||||
Exchange.Statistics s = Globals.se.getStatistics();
|
||||
|
||||
tradesLabel.setText(String.format("%d", s.trades));
|
||||
|
||||
|
||||
if (s.heigh == null){
|
||||
labelHigh.setText("--");
|
||||
}
|
||||
else {
|
||||
labelHigh.setText(Globals.se.getMoneyFormatter().format(s.heigh));
|
||||
}
|
||||
|
||||
if (s.low == null){
|
||||
labelLow.setText("--");
|
||||
}
|
||||
else {
|
||||
labelLow.setText(Globals.se.getMoneyFormatter().format(s.low));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}, 1000, 1000);
|
||||
|
Reference in New Issue
Block a user