2

How can i change the grid lines color / can i change the grid lines color? Cant seem to find a css solution.

enter image description here

2 Answers2

1

You can use this css it work for me :

.mygridStyle Line {
  -fx-stroke   : red;
}

then you attach the css class with the scene builder or with myGrid.getStyleClass().add("mygridStyle");

lrobert
  • 11
  • 2
1

As stated in this question here you shouldn't use GridPane to paint grid lines, you need to put content inside the cells, and then specify content borders. The visible grid line property if for debugging only, see doc.

xordonkey
  • 89
  • 4