summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/GUI/FertigStellen.java
diff options
context:
space:
mode:
Diffstat (limited to 'Dozentenmodul/src/GUI/FertigStellen.java')
-rw-r--r--Dozentenmodul/src/GUI/FertigStellen.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/Dozentenmodul/src/GUI/FertigStellen.java b/Dozentenmodul/src/GUI/FertigStellen.java
index 1d9734c4..4dfc92cf 100644
--- a/Dozentenmodul/src/GUI/FertigStellen.java
+++ b/Dozentenmodul/src/GUI/FertigStellen.java
@@ -23,6 +23,8 @@ import Models.person;
import Models.vm;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
@SuppressWarnings("serial")
public class FertigStellen extends JDialog {
@@ -48,6 +50,12 @@ public class FertigStellen extends JDialog {
*/
@SuppressWarnings("deprecation")
public FertigStellen() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent e) {
+ System.exit(0);
+ }
+ });
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException