Reputation: 485
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)?
Upvotes: 7
Views: 12097
Reputation: 485
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
.
Upvotes: 10
Reputation: 13727
It looks like some additional CSS is needed in order to be able to set ScrollPane backgrounds to whatever color you like. See this question:
ScrollPanes in JavaFX 8 always have gray background
Upvotes: 2
Reputation: 8841
May be This Can Help..
JavaFX ScrollPane border and background
..
JavaFX Hide ScrollPane gray border
....
JavaFX ScrollPane showing objects outside of viewport
....
JAVAFX 2.0 How can i dynamically change the content in a scrollPane?
Upvotes: 0