[Solved] Activating JButton when radio button is enabled? [closed]


Use itemStateChanged event to detect the radio button enabled & do your stuff,

@Override
    public void itemStateChanged(ItemEvent e) {
        if (e.getStateChange() == ItemEvent.SELECTED) {
            yourButton.enabled=true;
        }
        else if (e.getStateChange() == ItemEvent.DESELECTED) {
            yourButton.enabled=false;
        }
    }

1

solved Activating JButton when radio button is enabled? [closed]