-2

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.

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Gerald
  • 79
  • 6

1 Answers1

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