I’m developing a project in Java using netbeans IDE and I need to disable a particular JButton. I use the following code for that.
IssuBtn.setEnabled(false);
But after it is disabled it doesn’t show the text on the JButton. How can I keep that text on the JButton?
This experiment suggests one answer is ‘Use a PLAF that is not Metal’.
Alternately, adjust the values in the
UIManager.As pointed out by kleopatra..
Where ‘it’ is my answer. In fact, I suspect she hit upon the real cause with the comment:
I second that guess.