Clojure has several GUI libraries / frameworks that look priomising:
seesaw wraps Swing in a very concise DSL, which can certainly be used to declaratively create GUI interfaces:
(defn -main [& args]
(invoke-later
(-> (frame :title "Hello",
:content "Hello, Seesaw",
:on-close :exit)
pack!
show!)))
Incanter (, JFreeChart). GUI, , :
;; show a histogram of 1000 samples from a normal distribution
(view (histogram (sample-normal 1000)))
JavaFX 2.0 Clojure - DSL:
(defn -start [app stage]
(eval
(fx Stage :visible true :width 300 :height 200 :title "hello world"
:scene (fx Scene
(fx BorderPane :left (fx Text "hello")
:right (fx Text "Right")
:top (fx Text "top")
:bottom (fx Text "Bottom")
:center (fx Text "In the middle!"))))))