可以使用'config!'更改窗口中内容的值。 选项。 在以下示例中配置! 选项用于将窗口内容更改为“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"))
运行上面的代码后,您将看到以下窗口。