JSpinner waitHr = new JSpinner();
waitHr.setEnabled(false);
I have a spinner and I need to prevent the user from editing it temporarily. The problem is, when the spinner is disabled, it’s text colour makes it very hard to read, which is not acceptable in this case. I noticed that you can do this with JTextFields:
JTextField txtTest = new JTextField();
txtTest.setDisabledTextColor(Color.BLACK);
Is there anything similar that can be used for a JSpinner?
you can play with that as you want