mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-18 22:56:15 +01:00
fixed numberformat
This commit is contained in:
parent
0d885203a7
commit
96542fa42b
@ -88,8 +88,10 @@ public class TradeMenu extends Dialog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setTrades() {
|
private void setTrades() {
|
||||||
tradeHandler.setOfferedAmount(Integer.parseInt(leftCurrencyInput.getText()));
|
String leftCurreny = leftCurrencyInput.getText().equals("")? "0" : leftCurrencyInput.getText();
|
||||||
tradeHandler.setRequestedAmount(Integer.parseInt(rightCurrencyInput.getText()));
|
String rightCurreny = rightCurrencyInput.getText().equals("")? "0" : rightCurrencyInput.getText();
|
||||||
|
tradeHandler.setOfferedAmount(Integer.parseInt(leftCurreny));
|
||||||
|
tradeHandler.setRequestedAmount(Integer.parseInt(rightCurreny));
|
||||||
tradeHandler.setOfferedJailCards(Integer.parseInt(leftSpecialCardSelector.getSelectedItem()));
|
tradeHandler.setOfferedJailCards(Integer.parseInt(leftSpecialCardSelector.getSelectedItem()));
|
||||||
tradeHandler.setRequestedJailCards(Integer.parseInt(rightSpecialCardSelector.getSelectedItem()));
|
tradeHandler.setRequestedJailCards(Integer.parseInt(rightSpecialCardSelector.getSelectedItem()));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user