Hi, I would like to write a little scrip using boot that displays a JFrame. However, the script finishes, before the frame even shows up. I can delay it with (Thread/sleep 3000), but would like the script to wait for the window to be closed. What's the best way of implementing it boot script?
My hypothesis is that boot does not wait for background threads to shutdown, EDT in this case. If I write a regular Clojure program with the same code, it seems to wait for the other threads before exiting.
Here's an example:
;-*- mode: clojure -*-
(set-env! :dependencies '[[seesaw "1.4.5"]])
(require '[seesaw.core :refer :all])
(-> (frame :title "HI!" :content "I'm a label!" :on-close :exit)