|
@ -12,12 +12,16 @@ 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 lblNewLabel; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -54,6 +58,10 @@ public class MeinGui extends JFrame { |
|
|
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); |
|
|
|
|
|
|
|
@ -91,22 +99,38 @@ public class MeinGui extends JFrame { |
|
|
JLabel balance = new JLabel("Balance"); |
|
|
JLabel balance = new JLabel("Balance"); |
|
|
balance.setBounds(543, 39, 46, 14); |
|
|
balance.setBounds(543, 39, 46, 14); |
|
|
contentPane.add(balance); |
|
|
contentPane.add(balance); |
|
|
|
|
|
Image image1 = new ImageIcon(this.getClass().getResource("/money.png")).getImage(); |
|
|
|
|
|
|
|
|
|
|
|
lblNewLabel_6 = new JLabel(""); |
|
|
|
|
|
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"); |
|
|
|
|
|
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); |
|
|
|
|
|
|
|
|
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 eintraegeLeeren = new JLabel("Eintr\u00E4ge leeren"); |
|
|
|
|
|
eintraegeLeeren.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
|
|
eintraegeLeeren.setBounds(432, 221, 115, 14); |
|
|
|
|
|
contentPane.add(eintraegeLeeren); |
|
|
|
|
|
|
|
|
JLabel leeren = new JLabel("Eintr\u00E4ge leeren"); |
|
|
|
|
|
leeren.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
|
|
leeren.setBounds(432, 221, 115, 14); |
|
|
|
|
|
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(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|