Browse Source

Commit_16 Umbenennen 3 Methoden

Eduard2
Adah Boukhari 5 years ago
parent
commit
61bcfa4dcc
  1. BIN
      Budget Projekt/bin/MeinBudgetView/Main.class
  2. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui$1.class
  3. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui.class
  4. 9
      Budget Projekt/src/MeinBudgetView/Main.java
  5. 18
      Budget Projekt/src/MeinBudgetView/MeinGui.java

BIN
Budget Projekt/bin/MeinBudgetView/Main.class

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui$1.class

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui.class

9
Budget Projekt/src/MeinBudgetView/Main.java

@ -1,9 +0,0 @@
package MeinBudgetView;
public class Main {
public static void main(String[] args) {
MeinGui run = new MeinGui();
run.main(args);
}
}

18
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -13,6 +13,8 @@ import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.JTextArea;
@ -92,7 +94,7 @@ public class MeinGui extends JFrame implements ActionListener {
labelHauptImage.setIcon(new ImageIcon(image0));
labelHauptImage.setFont(new Font("Tahoma", Font.BOLD, 13));
labelHauptImage.setBounds(10, 8, 86, 61);
labelHauptImage.setBounds(10, 0, 86, 61);
contentPane.add(labelHauptImage);
JLabel budgetEingeben = new JLabel("Budget eingeben");
@ -192,14 +194,14 @@ public class MeinGui extends JFrame implements ActionListener {
budget = Integer.parseInt(text1.getText());
if (ae.getSource() == this.senden && (text1 != null && text2 != null)) {
BudgetView();
SetBudgetView();
}
if (ae.getSource() == this.berechne && (text1 != null && text2 != null)) {
expenses = budget - Integer.parseInt(text2.getText());
expensesView();
setExpensesView();
balance = Integer.parseInt(text1.getText()) - Integer.parseInt(text2.getText());
balanceView();
setBalanceView();
}
}
@ -216,16 +218,16 @@ public class MeinGui extends JFrame implements ActionListener {
balanceDisplay.setText("");
}
public static void BudgetView() {
public static void SetBudgetView() {
budgetDispaly.setText(budget + " €");
}
public static void expensesView() {
public static void setExpensesView() {
expensesDisplay.setText(expenses - budget + " €");
}
public static void balanceView() {
public static void setBalanceView() {
balanceDisplay.setText(balance + " €");
}
}
}
Loading…
Cancel
Save