mercredi 11 mars 2015

How to make Java Swing Radio Buttons unselectable but not greyed out?



I am developing a Java Swing App, and I want to use JRadioButton objects to show state. I don't want the user to have the ability to select them. If I use the button's .setEnabled(false) method, the radio button is greyed out.


I don't want the Radio Button to grey out. Is there a way to override this?




Aucun commentaire:

Enregistrer un commentaire