I'm developing a GUI in Java by use of NetBeans and I like to change the text color of a disabled button to black.
The following command is working fine with a combo box:
UIManager.getDefaults().put("ComboBox.disabledForeground", Color.BLACK);
With a Button the following commands have no effekt:
UIManager.getDefaults().put("Button.disabledForeground", Color.BLACK);
or
UIManager.getDefaults().put("Button.disabledText", Color.BLACK);
I hope somebody can help me.
Thank you in advance.
Steffen