// To create a radio button and button group,
    // see e768 创建单选按钮
    
    // Select the radio button; the currently selected radio button is deselected.
    // This operation does not cause any action events to be fired.
    ButtonModel model = radioButton.getModel();
    group.setSelected(model, true);

 

Related Examples