LoginSignup
1
2

More than 5 years have passed since last update.

ClojureでSwingの画面を出す

Posted at

やりたいこと

ClojureでSwingの画面が出したい。
シンプルにそれだけ。

やり方

swing.clj
(import 'javax.swing.JFrame)

(doto (new JFrame "test")
  (.setBounds 100 100 300 300)
  (.setVisible true)
  (.setDefaultCloseOperation JFrame/EXIT_ON_CLOSE))

(.setDefaultCloseOperation JFrame/EXIT_ON_CLOSE) は設定すると
画面を閉じたときに一緒にREPLも落としてくれるので、開発中は設定しないことを
おすすめします。

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2