Browse Source

Commit_15 expensesView() implementiert

Eduard2
Mohamed El Boukhari 5 years ago
parent
commit
7fcf0a0d03
  1. 5
      Budget Projekt/src/MeinBudgetView/MeinGui.java

5
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -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 + " €");
} }
**/
} }
Loading…
Cancel
Save