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

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

技术教程推荐

数据结构与算法之美 -〔王争〕

iOS开发高手课 -〔戴铭〕

检索技术核心20讲 -〔陈东〕

如何看懂一幅画 -〔罗桂霞〕

代码之丑 -〔郑晔〕

高楼的性能工程实战课 -〔高楼〕

PyTorch深度学习实战 -〔方远〕

云计算的必修小课 -〔吕蕴偲〕

云时代的JVM原理与实战 -〔康杨〕

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