See-saw是一個可用于創(chuàng)建桌面應(yīng)用程序的庫。 為了使用See-saw,首先從以下github鏈接下載.clj文件 https://github.com/daveray/seesaw
然后創(chuàng)建一個示例桌面應(yīng)用程序。 下面是相同的代碼。
(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庫,以便可以使用所有可用的方法。
幀和內(nèi)容的屬性可用于定義標題和需要在窗口中顯示的內(nèi)容。
最后,“show!”函數(shù)用于顯示窗口。
更多建議: