What is the best way to do GUIs in Clojure?

后端 未结 16 1380
逝去的感伤
逝去的感伤 2020-12-07 06:47

What is the best way to do GUIs in Clojure?

Is there an example of some functional Swing or SWT wrapper? Or some integration with JavaFX declarative GUI description

16条回答
  •  攒了一身酷
    2020-12-07 07:29

    So I didn't see Fn-Fx on this list, from Timothy Baldridge (halgiri). This is a Clojure library providing a functional abstraction over JavaFX.

    It can be found on Github at https://github.com/halgari/fn-fx.

    To use, make sure you are using a recent version of Java (1.8 90+) and add a dependency to the github repo by adding the following to your project.clj:

    :plugins [[lein-git-deps "0.0.1-SNAPSHOT"]]
    :git-dependencies [["https://github.com/halgari/fn-fx.git"]]
    

    I have tried it, and it works out of the box.

提交回复
热议问题