可以使用“config!”選項(xiàng)更改窗口中內(nèi)容的值。 在下面的示例中配置! 選項(xiàng)用于將窗口內(nèi)容更改為新值“Good Bye”。
(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/config! window :content "Good Bye"))
當(dāng)上面的代碼運(yùn)行時(shí),你會(huì)得到以下窗口。
更多建議: