How do I add radio buttons to a button group using NetBeans?

Once I add them, how do I get selected radio button from the button group?

Edit
Report