|
@ -12,18 +12,17 @@ import javax.swing.ImageIcon; |
|
|
import javax.swing.JButton; |
|
|
import javax.swing.JButton; |
|
|
import javax.swing.JLabel; |
|
|
import javax.swing.JLabel; |
|
|
import java.awt.Font; |
|
|
import java.awt.Font; |
|
|
import java.awt.event.ActionListener; |
|
|
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
|
|
|
|
|
|
|
|
public class MeinGui extends JFrame { |
|
|
public class MeinGui extends JFrame { |
|
|
|
|
|
|
|
|
private JPanel contentPane; |
|
|
private JPanel contentPane; |
|
|
private JTextField text1; |
|
|
private JTextField text1; |
|
|
private JTextField text2; |
|
|
private JTextField text2; |
|
|
JLabel lblNewLabel_6; |
|
|
|
|
|
JLabel lblNewLabel_7; |
|
|
|
|
|
JLabel lblNewLabel; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JLabel labelBudgetImage; |
|
|
|
|
|
JLabel labelExpensesImage; |
|
|
|
|
|
JLabel labelBalancetImage; |
|
|
|
|
|
JLabel labelHauptImage; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Launch the application. |
|
|
* Launch the application. |
|
|
*/ |
|
|
*/ |
|
@ -51,87 +50,86 @@ public class MeinGui extends JFrame { |
|
|
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
|
|
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
|
|
setContentPane(contentPane); |
|
|
setContentPane(contentPane); |
|
|
contentPane.setLayout(null); |
|
|
contentPane.setLayout(null); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JButton berechne = new JButton("Berechne"); |
|
|
JButton berechne = new JButton("Berechne"); |
|
|
berechne.setToolTipText(""); |
|
|
berechne.setToolTipText(""); |
|
|
berechne.setBounds(10, 281, 110, 23); |
|
|
berechne.setBounds(10, 281, 110, 23); |
|
|
contentPane.add(berechne); |
|
|
contentPane.add(berechne); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JButton senden = new JButton("Senden"); |
|
|
JButton senden = new JButton("Senden"); |
|
|
senden.addActionListener(new ActionListener() { |
|
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
senden.setBounds(10, 145, 110, 23); |
|
|
senden.setBounds(10, 145, 110, 23); |
|
|
contentPane.add(senden); |
|
|
contentPane.add(senden); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
text1 = new JTextField(); |
|
|
text1 = new JTextField(); |
|
|
text1.setBounds(10, 111, 171, 23); |
|
|
text1.setBounds(10, 111, 171, 23); |
|
|
contentPane.add(text1); |
|
|
contentPane.add(text1); |
|
|
text1.setColumns(10); |
|
|
text1.setColumns(10); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
text2 = new JTextField(); |
|
|
text2 = new JTextField(); |
|
|
text2.setBounds(10, 246, 171, 23); |
|
|
text2.setBounds(10, 246, 171, 23); |
|
|
contentPane.add(text2); |
|
|
contentPane.add(text2); |
|
|
text2.setColumns(10); |
|
|
text2.setColumns(10); |
|
|
|
|
|
|
|
|
lblNewLabel = new JLabel(""); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
labelHauptImage = new JLabel(""); |
|
|
Image image0 = new ImageIcon(this.getClass().getResource("/budgetapp.png")).getImage(); |
|
|
Image image0 = new ImageIcon(this.getClass().getResource("/budgetapp.png")).getImage(); |
|
|
lblNewLabel.setIcon(new ImageIcon(image0)); |
|
|
|
|
|
|
|
|
|
|
|
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 13)); |
|
|
|
|
|
lblNewLabel.setBounds(10, 8, 86, 61); |
|
|
|
|
|
contentPane.add(lblNewLabel); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
labelHauptImage.setIcon(new ImageIcon(image0)); |
|
|
|
|
|
|
|
|
|
|
|
labelHauptImage.setFont(new Font("Tahoma", Font.BOLD, 13)); |
|
|
|
|
|
labelHauptImage.setBounds(10, 8, 86, 61); |
|
|
|
|
|
contentPane.add(labelHauptImage); |
|
|
|
|
|
|
|
|
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, 80, 110, 20); |
|
|
contentPane.add(budgetEingeben); |
|
|
contentPane.add(budgetEingeben); |
|
|
|
|
|
|
|
|
JLabel budget = new JLabel("Budget"); |
|
|
|
|
|
budget.setBounds(352, 39, 46, 14); |
|
|
|
|
|
contentPane.add(budget); |
|
|
|
|
|
|
|
|
|
|
|
JLabel expenses = new JLabel("Expenses"); |
|
|
|
|
|
expenses.setBounds(440, 39, 56, 14); |
|
|
|
|
|
contentPane.add(expenses); |
|
|
|
|
|
|
|
|
|
|
|
JLabel balance = new JLabel("Balance"); |
|
|
|
|
|
balance.setBounds(543, 39, 46, 14); |
|
|
|
|
|
contentPane.add(balance); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JLabel labelBudget = new JLabel("Budget"); |
|
|
|
|
|
labelBudget.setBounds(352, 39, 46, 14); |
|
|
|
|
|
contentPane.add(labelBudget); |
|
|
|
|
|
|
|
|
|
|
|
JLabel labelExpenses = new JLabel("Expenses"); |
|
|
|
|
|
labelExpenses.setBounds(440, 39, 56, 14); |
|
|
|
|
|
contentPane.add(labelExpenses); |
|
|
|
|
|
|
|
|
|
|
|
JLabel labelBalance = new JLabel("Balance"); |
|
|
|
|
|
labelBalance.setBounds(543, 39, 46, 14); |
|
|
|
|
|
contentPane.add(labelBalance); |
|
|
|
|
|
|
|
|
|
|
|
labelBudgetImage = new JLabel(""); |
|
|
Image image1 = new ImageIcon(this.getClass().getResource("/money.png")).getImage(); |
|
|
Image image1 = new ImageIcon(this.getClass().getResource("/money.png")).getImage(); |
|
|
|
|
|
|
|
|
lblNewLabel_6 = new JLabel(""); |
|
|
|
|
|
|
|
|
labelBudgetImage.setIcon(new ImageIcon(image1)); |
|
|
|
|
|
|
|
|
|
|
|
labelBudgetImage.setBounds(352, 59, 46, 55); |
|
|
|
|
|
contentPane.add(labelBudgetImage); |
|
|
|
|
|
|
|
|
|
|
|
labelExpensesImage = new JLabel(""); |
|
|
Image image2 = new ImageIcon(this.getClass().getResource("/wings-icon.png")).getImage(); |
|
|
Image image2 = new ImageIcon(this.getClass().getResource("/wings-icon.png")).getImage(); |
|
|
lblNewLabel_6.setIcon(new ImageIcon(image2)); |
|
|
|
|
|
|
|
|
|
|
|
lblNewLabel_6.setBounds(450, 59, 46, 55); |
|
|
|
|
|
contentPane.add(lblNewLabel_6); |
|
|
|
|
|
|
|
|
|
|
|
lblNewLabel_7 = new JLabel("New labelBalance"); |
|
|
|
|
|
|
|
|
labelExpensesImage.setIcon(new ImageIcon(image2)); |
|
|
|
|
|
|
|
|
|
|
|
labelExpensesImage.setBounds(450, 59, 46, 55); |
|
|
|
|
|
contentPane.add(labelExpensesImage); |
|
|
|
|
|
|
|
|
|
|
|
labelBalancetImage = new JLabel("New labelBalance"); |
|
|
Image image3 = new ImageIcon(this.getClass().getResource("/Money-icon.png")).getImage(); |
|
|
Image image3 = new ImageIcon(this.getClass().getResource("/Money-icon.png")).getImage(); |
|
|
lblNewLabel_7.setIcon(new ImageIcon(image3)); |
|
|
|
|
|
|
|
|
|
|
|
lblNewLabel_7.setBounds(553, 59, 34, 55); |
|
|
|
|
|
contentPane.add(lblNewLabel_7); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
labelBalancetImage.setIcon(new ImageIcon(image3)); |
|
|
|
|
|
|
|
|
|
|
|
labelBalancetImage.setBounds(553, 59, 34, 55); |
|
|
|
|
|
contentPane.add(labelBalancetImage); |
|
|
|
|
|
|
|
|
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, 221, 63, 14); |
|
|
contentPane.add(budgetAusgeben); |
|
|
contentPane.add(budgetAusgeben); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JLabel leeren = new JLabel("Eintr\u00E4ge leeren"); |
|
|
JLabel leeren = new JLabel("Eintr\u00E4ge leeren"); |
|
|
leeren.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
leeren.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
leeren.setBounds(432, 221, 115, 14); |
|
|
leeren.setBounds(432, 221, 115, 14); |
|
|
contentPane.add(leeren); |
|
|
contentPane.add(leeren); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JButton loeschen = new JButton("L\u00F6schen"); |
|
|
JButton loeschen = new JButton("L\u00F6schen"); |
|
|
loeschen.setBounds(442, 239, 89, 30); |
|
|
loeschen.setBounds(442, 239, 89, 30); |
|
|
contentPane.add(loeschen); |
|
|
contentPane.add(loeschen); |
|
|
|
|
|
|
|
|
JButton j1 = new JButton(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |