Hello world/Graphical: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|Clojure}}: add solution using cljfx library) |
||
Line 856: | Line 856: | ||
(.setDefaultCloseOperation (JFrame/EXIT_ON_CLOSE)) |
(.setDefaultCloseOperation (JFrame/EXIT_ON_CLOSE)) |
||
(.setVisible true)))</lang> |
(.setVisible true)))</lang> |
||
=== With cljfx === |
|||
{{libheader|cljfx}} |
|||
<lang lisp>(ns example |
|||
(:require [cljfx.api :as fx])) |
|||
(fx/on-fx-thread |
|||
(fx/create-component |
|||
{:fx/type :stage |
|||
:showing true |
|||
:title "Cljfx example" |
|||
:width 300 |
|||
:height 100 |
|||
:scene {:fx/type :scene |
|||
:root {:fx/type :v-box |
|||
:alignment :center |
|||
:children [{:fx/type :label |
|||
:text "Goodbye, world"}]}}}))</lang> |
|||
=={{header|COBOL}}== |
=={{header|COBOL}}== |