So, first you selected it and it does the things I told it to do, and then you deselected it, wanting to start an event, but only when it first has been selected.
Asked
Active
Viewed 51 times
-2
-
1Off the top of my head, use a PropertyChangeListener – MadProgrammer Oct 14 '18 at 19:23
-
Please show what you've attempted and let us know what problems you're having with this attempt. Not your down-voter (yet) by the way. – Hovercraft Full Of Eels Oct 14 '18 at 19:26
1 Answers
0
Add an ItemListener
to the radio button.
Read the section from the Swing tutorial on How to Write an ItemListener for more information.
and then you deselected it, wanting to start an event, but only when it first has been selected.
Well, the only way you will get the unselected event is if it has been selected first.

camickr
- 321,443
- 19
- 166
- 288