Start a new project or add a new JFrame to existing project.Then in the swing palette window drag and drop the radio buttons in to frame.
and also you have to add a buttongroup component in to frame.Radio buttons you can see in the frame but buttongroup you cannot see in the frame. We use button group because without button group you cannot select one option at a one time.
Now select all the radio buttons and Right click–>Properties –>ButtonGroup –>select ButtonGroup1.Now compile and run it.Then see it works nicely.Now drag and drop a new label and rename it as lblresult.When i am selection radio button appropriate text should be displayed in the label.
Just Right click on the radio button and goto event—>Action performed event and type below code in the method body
lblDisplay.setText("You have selected Forth Radio Button"); // method .setText() use to set some text on the textbox or label or something.
Download Netbeans example from here