summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/GUI/Summary.java
diff options
context:
space:
mode:
authortspitzer2013-10-10 10:21:17 +0200
committertspitzer2013-10-10 10:21:17 +0200
commitdedd4f1036f851651ae2cf547329bf3a380c7d98 (patch)
tree7e705908885623a866462eda0a25d603c0326916 /Dozentenmodul/src/GUI/Summary.java
parentsaddsa (diff)
downloadtutor-module-dedd4f1036f851651ae2cf547329bf3a380c7d98.tar.gz
tutor-module-dedd4f1036f851651ae2cf547329bf3a380c7d98.tar.xz
tutor-module-dedd4f1036f851651ae2cf547329bf3a380c7d98.zip
Die Anwendung wird nun korrekt beendet.
Bei Schließen der Upload- und Downloadfenster wird der jeweilige Vorgang nun abgebrochen.
Diffstat (limited to 'Dozentenmodul/src/GUI/Summary.java')
-rw-r--r--Dozentenmodul/src/GUI/Summary.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/Dozentenmodul/src/GUI/Summary.java b/Dozentenmodul/src/GUI/Summary.java
index 471f32f9..db3772cf 100644
--- a/Dozentenmodul/src/GUI/Summary.java
+++ b/Dozentenmodul/src/GUI/Summary.java
@@ -25,6 +25,8 @@ import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import java.awt.Panel;
import java.text.SimpleDateFormat;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
@SuppressWarnings("serial")
@@ -48,6 +50,12 @@ public class Summary extends JDialog {
* Create the dialog.
*/
public Summary() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent e) {
+ System.exit(0);
+ }
+ });
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException