Archived
0

Add Total balance field and Clear button

This commit is contained in:
iMoHax
2014-07-28 15:24:21 +04:00
parent a0b846deb0
commit f63c3f8c92
2 changed files with 16 additions and 3 deletions

View File

@@ -31,6 +31,7 @@
<HBox GridPane.columnSpan="2" GridPane.rowIndex="4" alignment="CENTER" spacing="5">
<Button fx:id="add" text="Добавить" onAction="#addOrders"/>
<Button text="Удалить" onAction="#removeSelected"/>
<Button text="Очистить" onAction="#removeAll" />
</HBox>
</GridPane>
</TitledPane>
@@ -41,6 +42,8 @@
<ColumnConstraints prefWidth="70"/>
<ColumnConstraints prefWidth="160"/>
</columnConstraints>
<Label text="Баланс:"/>
<NumberField fx:id="totalBalance" prefWidth="100" GridPane.columnIndex="1" editable="false"/>
<Label text="Прибыль:" GridPane.rowIndex="1"/>
<NumberField fx:id="totalProfit" prefWidth="100" GridPane.columnIndex="1" GridPane.rowIndex="1" editable="false"/>
</GridPane>