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