Browse Source

Commit_14 expensesView() implementiert

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

5
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -197,7 +197,7 @@ public class MeinGui extends JFrame implements ActionListener {
if (ae.getSource() == this.berechne && (text1 != null && text2 != null)) {
expenses = budget - Integer.parseInt(text2.getText());
//expensesView();
expensesView();
balance = Integer.parseInt(text1.getText()) - Integer.parseInt(text2.getText());
//balanceView();
}
@ -222,10 +222,11 @@ public class MeinGui extends JFrame implements ActionListener {
budgetDispaly.setText(budget + " €");
}
/**
public static void expensesView() {
expensesDisplay.setText(expenses - budget + " €");
}
/**
public static void balanceView() {
balanceDisplay.setText(balance + " €");

Loading…
Cancel
Save