Set the background color of a ScrollPane in JavaFX 8


Question

I cannot set the background color of a ScrollPane in the latest version of JavaFX 8 (java 8 b-110 and above versions). So I need to know whether this is a permanent issue or temporarily (which can be Fixed in later versions)?

1
5
4/25/2014 1:42:47 PM

I ended up using -fx-background:green; instead of -fx-background-color:green; because -fx-background-color only set the colour for the borders of ScrollPane.

8
7/28/2015 9:03:35 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon