ScrollPanes in JavaFX 8 always have gray background -


when upgraded javafx app javafx 2 javafx 8, noticed scrollpanes showed gray rectangles, background color set or background set transparent.

i found solution in discussion: https://community.oracle.com/thread/3538169

first needed this:

.scroll-pane > .viewport {    -fx-background-color: transparent; } 

then set background color whatever like. in case, i'm making scrollpane backgrounds transparent:

.scroll-pane {    -fx-background-color: transparent; } 

Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -