Skip to content
This repository
Browse code

Added note about listening to selection on buttong groups.

  • Loading branch information...
commit dbbbf797c60fcf372bf29049c26de60773e74235 1 parent 9228232
Dave Ray authored

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. +6 0 src/seesaw/core.clj
6 src/seesaw/core.clj
@@ -1277,6 +1277,12 @@
1277 1277 ; Check A
1278 1278 (selection bg (select root [:#a]))
1279 1279
  1280 + ; Listen for selection changes. Note that the selection MAY BE NIL!
  1281 + (listen bg :selection
  1282 + (fn [e]
  1283 + (if-let [s (selection e)]
  1284 + (println \"Selected \" (text s)))))
  1285 +
1280 1286 Returns an instance of javax.swing.ButtonGroup
1281 1287
1282 1288 See:

0 comments on commit dbbbf79

Please sign in to comment.
Something went wrong with that request. Please try again.