Hello to everyone and happy new year...
I have 3 JRadioButtons in my JFrame
private JRadioButton one = new JRadioButton("one "); private JRadioButton two = new JRadioButton("two "); private JRadioButton three = new JRadioButton("three ");
And I Have add them to a group
private ButtonGroup Group = new ButtonGroup();
Group .add(one); Group .add(two); Group .add(three); JPanel myPanel = new JPanel(); myPanel .add(one); myPanel .add(two); myPanel .add(three);
So far so good;)
Now I want to detect which radio button is selected from the group but when i am trying to use this line of code
I dont know what to put for parameter m which in Javadoc says is a ButtonModel...
How I can convert my RadioButtons to ButtonModels?
Thx in advance:)
Edited 5 Years Ago by christos312: n/a