|
|
@ -199,7 +199,7 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
expenses = budget - Integer.parseInt(text2.getText()); |
|
|
|
expensesView(); |
|
|
|
balance = Integer.parseInt(text1.getText()) - Integer.parseInt(text2.getText()); |
|
|
|
//balanceView(); |
|
|
|
balanceView(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
@ -226,11 +226,10 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
public static void expensesView() { |
|
|
|
expensesDisplay.setText(expenses - budget + " €"); |
|
|
|
} |
|
|
|
/** |
|
|
|
|
|
|
|
|
|
|
|
public static void balanceView() { |
|
|
|
balanceDisplay.setText(balance + " €"); |
|
|
|
} |
|
|
|
|
|
|
|
**/ |
|
|
|
} |