I\'m having some problem regarding the default background and border of the ScrollPane. Using this style made the problem clearer to see.
setStyle(\"-fx-back
Try use this first
.scroll-pane > .viewport { -fx-background-color: transparent; }
Before setting the background color