From f54be5dae3f8e0a5fe302a456d809b006fc2b9bb Mon Sep 17 00:00:00 2001 From: TudbuT Date: Tue, 25 Jun 2024 07:42:50 +0200 Subject: [PATCH] make window close when timeout expires --- src/main/java/de/com/baseband/clientboot/CBWindow.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/de/com/baseband/clientboot/CBWindow.java b/src/main/java/de/com/baseband/clientboot/CBWindow.java index a652596..a9d897d 100644 --- a/src/main/java/de/com/baseband/clientboot/CBWindow.java +++ b/src/main/java/de/com/baseband/clientboot/CBWindow.java @@ -38,6 +38,7 @@ public class CBWindow extends JFrame implements WindowListener { public void waitForClose() { setVisible(true); while(poll()); + setVisible(false); } public boolean poll() {