可以使用蹺蹺板類的alert方法顯示模態(tài)對話框。 該方法采用文本值,需要在模態(tài)對話框中顯示。
下面的程序顯示了如何使用它的示例。
(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/alert "Hello World"))
當(dāng)上面的代碼運(yùn)行時(shí),你會得到以下窗口。
更多建議: