|
@ -0,0 +1,65 @@ |
|
|
|
|
|
package MeinBudgetView; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.EventQueue; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JFrame; |
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
|
|
import javax.swing.JTextField; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JButton; |
|
|
|
|
|
import javax.swing.JLabel; |
|
|
|
|
|
import java.awt.Font; |
|
|
|
|
|
|
|
|
|
|
|
public class MeinGui extends JFrame { |
|
|
|
|
|
|
|
|
|
|
|
private JPanel contentPane; |
|
|
|
|
|
private JTextField text1; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Launch the application. |
|
|
|
|
|
*/ |
|
|
|
|
|
public static void main(String[] args) { |
|
|
|
|
|
EventQueue.invokeLater(new Runnable() { |
|
|
|
|
|
public void run() { |
|
|
|
|
|
try { |
|
|
|
|
|
MeinGui frame = new MeinGui(); |
|
|
|
|
|
frame.setVisible(true); |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* Create the frame. |
|
|
|
|
|
*/ |
|
|
|
|
|
public MeinGui() { |
|
|
|
|
|
setTitle("Budget"); |
|
|
|
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
|
|
setBounds(100, 100, 654, 368); |
|
|
|
|
|
contentPane = new JPanel(); |
|
|
|
|
|
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
|
|
|
|
|
setContentPane(contentPane); |
|
|
|
|
|
contentPane.setLayout(null); |
|
|
|
|
|
|
|
|
|
|
|
JButton senden = new JButton("Senden"); |
|
|
|
|
|
senden.setBounds(10, 145, 110, 23); |
|
|
|
|
|
contentPane.add(senden); |
|
|
|
|
|
|
|
|
|
|
|
text1 = new JTextField(); |
|
|
|
|
|
text1.setBounds(10, 111, 171, 23); |
|
|
|
|
|
contentPane.add(text1); |
|
|
|
|
|
text1.setColumns(10); |
|
|
|
|
|
|
|
|
|
|
|
JLabel budegetEingeben = new JLabel("Budget eingeben"); |
|
|
|
|
|
budegetEingeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
|
|
budegetEingeben.setBounds(10, 80, 110, 20); |
|
|
|
|
|
contentPane.add(budegetEingeben); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |