क्लोजर में कुछ जीयूआई पुस्तकालय/ढांचे हैं जो प्रियोमाइजिंग देखते हैं:
seesaw wraps Swing in a very concise DSL, which could 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 provides quite a lot of graphing and visualisation functionality (wrapping JFreeChart among other things). Not quite a general GUI library, but very useful if you're focusing on stats:
;; show a histogram of 1000 samples from a normal distribution
(view (histogram (sample-normal 1000)))
जावाफ़ैक्स को लपेटने के लिए कुछ साफ उदाहरण कोड पॉप-अप भी है 2.0 क्लोजर में - फिर यह एक घोषणात्मक डीएसएल की तरह है:
(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!"))))))