This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
You need a ButtonGroup object then add those radio buttons to the group like below.
After that you need a action listener to control which radio button is enabled, eg click name button will disable location button and vice versa. To enable/disable radio button you can use the setEnable() method.