diff options
Diffstat (limited to 'Dozentenmodul/src/GUI/Summary.java')
| -rw-r--r-- | Dozentenmodul/src/GUI/Summary.java | 8 |
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
|
