make window close when timeout expires
All checks were successful
/ Build & Publish (push) Successful in 41s
All checks were successful
/ Build & Publish (push) Successful in 41s
This commit is contained in:
parent
86ce31b987
commit
f54be5dae3
1 changed files with 1 additions and 0 deletions
|
@ -38,6 +38,7 @@ public class CBWindow extends JFrame implements WindowListener {
|
|||
public void waitForClose() {
|
||||
setVisible(true);
|
||||
while(poll());
|
||||
setVisible(false);
|
||||
}
|
||||
|
||||
public boolean poll() {
|
||||
|
|
Loading…
Add table
Reference in a new issue