Hi all
I have 4 jRadioButton in a buttonGroup1 now I want to know
how to determine which radio button is selected within these 4 radio button on Button Click event..
I tried to but failed.. here is my code
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
str1=buttonGroup1.getSelection().getActionCommand();
System.out.println(str1);
}
I am getting null value from this code. Why can't figure?????:-/
Thanking you all in advance