Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -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)))
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
(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"}]}}}))
|
||||
Loading…
Add table
Add a link
Reference in a new issue