Issue
The default color for JFXDatePicker seems to be green. How do I change it to a different color, lets say red?
src="https://i.stack.imgur.com/R4npi.png" alt="enter image description here" />
I tried the following but they seem to change colors of different elements
-fx-background-color
: This only changed the input background color-fx-control-inner-background
: This changed the white background to red but does not change the currently green part.
Could you please help me out what style do we need to apply to change the green color.
Solution
This will change the month-year-pane to red color:
.date-picker-popup > .month-year-pane {
-fx-background-color: red;
}
Answered By - Amarildo
Answer Checked By - Mildred Charles (JavaFixing Admin)