Clojure 中的 Desktop – Displaying a

首页 / Clojure入门教程 / Clojure 中的 Desktop – Displaying a

可以使用See-saw类的alert方法显示模式对话框,该方法采用文本值,该文本值需要在模式对话框中显示。

(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"))

祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)

技术教程推荐

零基础学Python -〔尹会生〕

重学前端 -〔程劭非(winter)〕

从0开发一款iOS App -〔朱德权〕

容量保障核心技术与实战 -〔吴骏龙〕

程序员的个人财富课 -〔王喆〕

业务开发算法50讲 -〔黄清昊〕

去无方向的信 -〔小麥〕

徐昊 · TDD项目实战70讲 -〔徐昊〕

遗留系统现代化实战 -〔姚琪琳〕

好记忆不如烂笔头。留下您的足迹吧 :)