Clojure - Desktop See-saw
See-saw 是一个可用于创建桌面应用程序的库。 为了使用 See-saw,首先从以下 github 链接 https://github.com/daveray/seesaw 下载 .clj 文件
然后创建一个示例桌面应用程序。 以下是相同的代码。
(ns web.core (:gen-class) (:require [seesaw.core :as seesaw])) (def window (seesaw/frame :title "First Example" :content "hello world" :width 200 :height 50)) (defn -main [& args] (seesaw/show! window))
当上面的代码运行时,您将看到以下窗口。

该代码非常不言自明。
首先,您需要确保使用seesaw.core库,以便可以使用所有可用的方法。
frame 和 content 属性可用于定义标题以及窗口中需要显示哪些内容。
最后使用'show!'函数来显示窗口。