Browse Source

Commit_20 Button textExpensesName hinzugefuegt

Eduard2
Adah Boukhari 5 years ago
parent
commit
028e5eb486
  1. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui$1.class
  2. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui.class
  3. 24
      Budget Projekt/src/MeinBudgetView/MeinGui.java

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

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui.class

24
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -41,6 +41,7 @@ public class MeinGui extends JFrame implements ActionListener {
public static int budget; public static int budget;
public static int expenses; public static int expenses;
public static int balance; public static int balance;
private JTextField textExpensesName;
/** /**
* Launch the application. * Launch the application.
@ -72,20 +73,20 @@ public class MeinGui extends JFrame implements ActionListener {
this.berechne = new JButton("Berechne"); this.berechne = new JButton("Berechne");
berechne.setToolTipText(""); berechne.setToolTipText("");
berechne.setBounds(10, 281, 110, 23);
berechne.setBounds(78, 281, 110, 23);
contentPane.add(berechne); contentPane.add(berechne);
this.senden = new JButton("Senden"); this.senden = new JButton("Senden");
senden.setBounds(10, 145, 110, 23);
senden.setBounds(78, 126, 110, 23);
contentPane.add(senden); contentPane.add(senden);
text1 = new JTextField(); text1 = new JTextField();
text1.setBounds(10, 111, 128, 23);
text1.setBounds(60, 97, 128, 20);
contentPane.add(text1); contentPane.add(text1);
text1.setColumns(10); text1.setColumns(10);
text2 = new JTextField(); text2 = new JTextField();
text2.setBounds(10, 246, 128, 23);
text2.setBounds(60, 250, 128, 20);
contentPane.add(text2); contentPane.add(text2);
text2.setColumns(10); text2.setColumns(10);
@ -99,7 +100,7 @@ public class MeinGui extends JFrame implements ActionListener {
JLabel budgetEingeben = new JLabel("Budget eingeben"); JLabel budgetEingeben = new JLabel("Budget eingeben");
budgetEingeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); budgetEingeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14));
budgetEingeben.setBounds(10, 80, 110, 20);
budgetEingeben.setBounds(10, 72, 110, 20);
contentPane.add(budgetEingeben); contentPane.add(budgetEingeben);
JLabel labelBudget = new JLabel("Budget"); JLabel labelBudget = new JLabel("Budget");
@ -137,7 +138,7 @@ public class MeinGui extends JFrame implements ActionListener {
JLabel budgetAusgeben = new JLabel("Ausgaben"); JLabel budgetAusgeben = new JLabel("Ausgaben");
budgetAusgeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); budgetAusgeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14));
budgetAusgeben.setBounds(10, 221, 63, 14);
budgetAusgeben.setBounds(10, 185, 63, 14);
contentPane.add(budgetAusgeben); contentPane.add(budgetAusgeben);
this.leeren = new JLabel("Eintr\u00E4ge leeren"); this.leeren = new JLabel("Eintr\u00E4ge leeren");
@ -146,11 +147,11 @@ public class MeinGui extends JFrame implements ActionListener {
contentPane.add(leeren); contentPane.add(leeren);
this.loeschen = new JButton("L\u00F6schen"); this.loeschen = new JButton("L\u00F6schen");
loeschen.setBounds(368, 266, 89, 30);
loeschen.setBounds(368, 273, 89, 23);
contentPane.add(loeschen); contentPane.add(loeschen);
this.exit = new JButton("Exit\r\n"); this.exit = new JButton("Exit\r\n");
exit.setBounds(494, 266, 95, 30);
exit.setBounds(494, 273, 95, 23);
contentPane.add(exit); contentPane.add(exit);
JLabel beendne = new JLabel("Beenden"); JLabel beendne = new JLabel("Beenden");
@ -173,6 +174,12 @@ public class MeinGui extends JFrame implements ActionListener {
balanceDisplay.setBounds(543, 82, 85, 14); balanceDisplay.setBounds(543, 82, 85, 14);
contentPane.add(balanceDisplay); contentPane.add(balanceDisplay);
textExpensesName = new JTextField();
textExpensesName.setToolTipText("");
textExpensesName.setBounds(60, 221, 128, 20);
contentPane.add(textExpensesName);
textExpensesName.setColumns(10);
text1.addActionListener(this); text1.addActionListener(this);
text2.addActionListener(this); text2.addActionListener(this);
senden.addActionListener(this); senden.addActionListener(this);
@ -233,5 +240,4 @@ public class MeinGui extends JFrame implements ActionListener {
String result = balance + " €"; String result = balance + " €";
return result; return result;
} }
} }
Loading…
Cancel
Save