Skip to Main Content

Java SE (Java Platform, Standard Edition)


For appeals, questions and feedback about Oracle Forums, please email Please ask technical questions in the appropriate category. Thank you!

CSS styling of ScrollPanes broken in JavaFX 8?

ibibbyMar 24 2014 — edited Mar 26 2014

In my application, I have a ScrollPane. The CSS file sets the ScrollPane's background to a dark gray using the -fx-background-color setting... or at least it did. After moving to JavaFX 8, I've noticed that setting -fx-background-color on a ScrollPane now only sets the color of the thin lining around the scrollbars. The background of the ScrollPane remains a light grey color. In fact, I can't find a way to set the background color of a ScrollPane AT ALL anymore! Is this a bug, or is there a new way to do it that I'm missing?

This post has been answered by David Grieve-Oracle on Mar 24 2014
Jump to Answer
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 23 2014
Added on Mar 24 2014