Login  Register

ActionListeners for radio buttons in GenericDialog?

Posted by JonNathan on Dec 31, 2013; 4:59pm
URL: http://imagej.273.s1.nabble.com/ActionListeners-for-radio-buttons-in-GenericDialog-tp5006012.html

I'd like to have RadioButton selections result in a dialogItemChanged event -- has anyone come up with an easy way to do this?I'm writing a plugin that uses the ExtendedPlugInFilter interface with the live preview checkbox feature.  The plugin uses the GenericDialog class, and employs radio buttons for part of its UI.  When looking at the source code (version 1.48m) for the GenericDialog class, I noticed that there are no Listeners (Action or otherwise) associated with the addRadioButtonGroup method, even though all the other types of UI components (ComboBox, Slider, TextField, etc.) employ Listeners of various types.  It seems RadioButtons get short shrift here...  

Any suggestions?  Or am I missing some functionality already written into the GenericDialog class?

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html