Search code examples
javaswingjradiobutton

How do I reset/clear JRadioButton in Java


How do you reset/clear a JRadiobutton? clearing a TextField is as simple as surenameField.setText(""); is there any similar way with the RadioButton?


Solution

  • You mean

    radioButton.setSelected(false);
    

    ?