An ActionListener would allow you to monitor when a radio button is selected and act accordingly. See the following:
How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With...