diff --git a/.idea/misc.xml b/.idea/misc.xml
index 57d62b3..e0844bc 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,6 +1,6 @@
-
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index dd414de..8b1b091 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -2,8 +2,10 @@
+
-
+
+
@@ -16,30 +18,28 @@
-
-
+
+
-
-
+
+
+
+
+
-
+
-
-
+
+
-
-
-
-
-
@@ -55,11 +55,12 @@
@@ -74,7 +75,6 @@
-
@@ -92,6 +92,7 @@
+
@@ -99,7 +100,7 @@
-
+
@@ -114,7 +115,7 @@
-
+
@@ -145,8 +146,8 @@
-
+
@@ -199,13 +200,13 @@
-
+
-
+
-
+
@@ -215,7 +216,7 @@
-
+
@@ -224,7 +225,7 @@
-
+
@@ -235,6 +236,37 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -250,17 +282,37 @@
-
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/out/production/Alpha/Main.class b/out/production/Alpha/Main.class
index 5de215f..2f81af4 100644
Binary files a/out/production/Alpha/Main.class and b/out/production/Alpha/Main.class differ
diff --git a/src/Main.java b/src/Main.java
index 0b76228..84fc76b 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -1,5 +1,6 @@
import javax.swing.*;
-
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
public class Main {
//Variablen GUI
@@ -8,7 +9,7 @@ public class Main {
JMenu jm = null;
JPanel contantPane = null;
JLabel label = null;
-
+ JMenuItem jmI = null;
//Konstruktor Gui
public Main(){
this.fr = new JFrame("Coutinius Integration");
@@ -18,19 +19,31 @@ public class Main {
this.fr.setJMenuBar(jmb);
this.jm = new JMenu("File");
this.jmb.add(jm);
+ this.jmI = new JMenuItem("Exit");
+ this.jm.add(jmI);
+ this.jmI.addActionListener(new ActionListener1());
this.contantPane = new JPanel();
- fr.setContentPane(contantPane);
-
- contantPane.add(new JLabel("Beispiel JLabel"));
- // Wir lassen unseren Frame anzeigen
- contantPane.setVisible(true);
- fr.setVisible(true);
+ this.fr.setContentPane(contantPane);
+ this.contantPane.add(new JLabel("Beispiel JLabel"));
+ this.contantPane.setVisible(true);
+ this.fr.setVisible(true);
}
public static void main(String[] args) {
System.out.println("Hello World!");
Main mn = new Main();
+
}
+
+ private class ActionListener1 implements ActionListener{
+ @Override
+ public void actionPerformed(ActionEvent e) {
+
+ System.exit(0);
+ }
+ }
+
+
}