diff options
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
|
