diff options
| author | tspitzer | 2013-10-10 10:21:17 +0200 |
|---|---|---|
| committer | tspitzer | 2013-10-10 10:21:17 +0200 |
| commit | dedd4f1036f851651ae2cf547329bf3a380c7d98 (patch) | |
| tree | 7e705908885623a866462eda0a25d603c0326916 /Dozentenmodul/src/GUI/searchRohling.java | |
| parent | saddsa (diff) | |
| download | tutor-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/searchRohling.java')
| -rw-r--r-- | Dozentenmodul/src/GUI/searchRohling.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Dozentenmodul/src/GUI/searchRohling.java b/Dozentenmodul/src/GUI/searchRohling.java index d4bc1c47..979bc5d2 100644 --- a/Dozentenmodul/src/GUI/searchRohling.java +++ b/Dozentenmodul/src/GUI/searchRohling.java @@ -26,6 +26,8 @@ import javax.swing.JMenuItem; import downloader.FTPException;
import downloader.FTPUtility;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
@SuppressWarnings("serial")
public class searchRohling extends JDialog {
@@ -56,6 +58,12 @@ public class searchRohling extends JDialog { * Create the dialog.
*/
public searchRohling() {
+ addWindowListener(new WindowAdapter() {
+ @Override
+ public void windowClosing(WindowEvent e) {
+ System.exit(0);
+ }
+ });
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (ClassNotFoundException | InstantiationException
|
