0.1.0-SNAPSHOT Arrow_down_16x16

button-example

clj-swing.example

  • (button-example)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clj_swing/example.clj:61 top

(defn button-example []
  (frame :title "A Button Example"
	 :layout (FlowLayout.)
	 :size [220 90]
	 :show true
	 [b1 (button "First")
	  b2 (button "Second")
	  lab (label "Press a button")]
	 (add-action-listener b1 ([e] (println "listener called")))))
Vars in clj-swing.example/button-example: defn println
Used in 0 other vars

Comments top

No comments for button-example. Log in to add a comment.