Issue
Is there any way of hiding the gray border of an ScrollPane control in JavaFX ?
Solution
All controls in JavaFX can be modified using CSS styling. You may want to take a look at href="http://docs.oracle.com/cd/E17802_01/javafx/javafx/1.3/docs/api/javafx.scene/doc-files/cssref.html#region">reference or tutorial.
Gray ScrollPane's border is actually the only part of the background which is visible behind the content. So you can change it by modifying the background:
ScrollPane sp = new ScrollPane();
sp.setStyle("-fx-background-color:transparent;");
Answered By - Sergey Grinev
Answer Checked By - Senaida (JavaFixing Volunteer)