A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
15
Task/Hello-world-Graphical/Clojure/hello-world-graphical.clj
Normal file
15
Task/Hello-world-Graphical/Clojure/hello-world-graphical.clj
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(ns experimentation.core
|
||||
(:import (javax.swing JOptionPane JFrame JTextArea JButton)
|
||||
(java.awt FlowLayout)))
|
||||
|
||||
(JOptionPane/showMessageDialog nil "Goodbye, World!")
|
||||
(let [button (JButton. "Goodbye, World!")
|
||||
window (JFrame. "Goodbye, World!")
|
||||
text (JTextArea. "Goodbye, World!")]
|
||||
(doto window
|
||||
(.setLayout (FlowLayout.))
|
||||
(.add button)
|
||||
(.add text)
|
||||
(.pack)
|
||||
(.setDefaultCloseOperation (JFrame/EXIT_ON_CLOSE))
|
||||
(.setVisible true)))
|
||||
Loading…
Add table
Add a link
Reference in a new issue