From d8955a6d28493a5fb9d0457fe4d2ceaecd1b8282 Mon Sep 17 00:00:00 2001
From: Dennis Toth <dennis.toth@stud.th-deg.de>
Date: Sun, 8 May 2022 17:40:29 +0200
Subject: [PATCH] Upload New File

---
 MainGUI.java | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
 create mode 100644 MainGUI.java

diff --git a/MainGUI.java b/MainGUI.java
new file mode 100644
index 0000000..7df9ab8
--- /dev/null
+++ b/MainGUI.java
@@ -0,0 +1,46 @@
+package notenmanager;
+import java.awt.EventQueue;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.*;
+import java.awt.*;
+
+public class MainGUI extends JFrame {
+
+	public MainGUI() {
+		setTitle("Notenmanager");
+		setSize(960, 540);
+		setLocationRelativeTo(null);
+		setDefaultCloseOperation(EXIT_ON_CLOSE);
+		
+		Container pane = getContentPane();
+		GroupLayout groupLayout = new GroupLayout(pane);
+		pane.setLayout(groupLayout);
+		
+		JButton	button = new JButton("Test");
+		button.addActionListener(new ActionListener() {
+			
+			@Override
+			public void actionPerformed(ActionEvent e) {
+				System.out.println("TEST erfolgreich");	
+			}
+		});
+		
+		groupLayout.setVerticalGroup(groupLayout.createSequentialGroup().addComponent(button));
+		groupLayout.setHorizontalGroup(groupLayout.createSequentialGroup().addComponent(button));
+		
+		groupLayout.setAutoCreateContainerGaps(true);
+	}
+	
+	public static void main(String[] args) {
+		EventQueue.invokeLater(new Runnable() {
+			@Override
+			public void run() {
+				MainGUI main = new MainGUI();
+				main.setVisible(true);
+			}
+		});
+	}
+
+}
-- 
GitLab