Originally posted by Bai Shen: Is there any way to make a radio button noneditable? I want to use them as an indicator of what's selected, but I don't want people to click and change the selection.
Do you mean JRadioButton or JCheckBox? No matter, either way this is what setEnabled(false) does. That will also cause the LnF to give an indication to the user that the button is disabled, usually by using a grey color.
If you want disabled behaviour without the greyed-out color (not necessarily recommended) you can either mess with the painting code or you can play tricks with the ButtonModel like this: