I am trying to make one button with the Red text disabled and the other Blue text disabled, but when using the following code, all it does is just make them both red.
Is there an easy way to do this?
UIManager.getDefaults().put("Button.disabledText",Color.BLUE); button1.setEnabled(false); UIManager.getDefaults().put("Button.disabledText",Color.RED); button2.setEnabled(false);
source share