I have set background color in scrollpane using setStyle() method. the below code is working fine in up to "jdk-8-ea-bin-b109" java version after that java versions, these commend is not working properly but while mouse over the color has been applying.
My code is:
scrlPane.setStyle("-fx-background-color:#434547;");
From a question I created in regards to ScrollPane background colors in JavaFX 8: ScrollPanes in JavaFX 8 always have gray background
You may need to use this CSS so that ScrollPane styling can actually work:
.scroll-pane > .viewport {
-fx-background-color: transparent;
}