Permalink
Browse files

Added note about listening to selection on buttong groups.

  • Loading branch information...
1 parent 9228232 commit dbbbf797c60fcf372bf29049c26de60773e74235 @daveray committed Dec 7, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/seesaw/core.clj
View
6 src/seesaw/core.clj
@@ -1277,6 +1277,12 @@
; Check A
(selection bg (select root [:#a]))
+ ; Listen for selection changes. Note that the selection MAY BE NIL!
+ (listen bg :selection
+ (fn [e]
+ (if-let [s (selection e)]
+ (println \"Selected \" (text s)))))
+
Returns an instance of javax.swing.ButtonGroup
See:

0 comments on commit dbbbf79

Please sign in to comment.