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