Hi,
I have two radio buttons, b1 and b2. Now these two are added to a button group g1. I also have a JButton called submit. Now when I press "submit" I want to print on the console using system.out.prin tln, which of the radio buttons was clicked in the group?
I assume the code will be written in the actionPerformed () for the submit button.
Thanks
I have two radio buttons, b1 and b2. Now these two are added to a button group g1. I also have a JButton called submit. Now when I press "submit" I want to print on the console using system.out.prin tln, which of the radio buttons was clicked in the group?
I assume the code will be written in the actionPerformed () for the submit button.
Thanks
Comment