In similar questions, it was written that if you set the background-color style, the background color will change, but in my case the outline changes
Scene Builder configuration:
Result:
And for some reason the outline is not for the entire rectangle.


Try to look at your xml file, it should be written something like this: style="-fx-background-color: #FFF5EE; -fx-border-color: #FFF5EE