Skip to content

Instantly share code, notes, and snippets.

@Licenser
Forked from anonymous/gist:434478
Created June 11, 2010 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Licenser/434482 to your computer and use it in GitHub Desktop.
Save Licenser/434482 to your computer and use it in GitHub Desktop.
(frame :title "A Button Example"
:layout (FlowLayout.)
:size [220 90]
:show true
[b1 (button "First")
;b1 (button "First" :action ([e] (println "First")))
b2 (button "Second")
lab (label "Press a button")]
(add-action-listener b1 ([e] (println "listener called"))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment