How to set grid line color in CSS?
Randahl Fink Isaksen
randahl at rockit.dk
Mon Dec 17 05:46:49 PST 2012
From the docs of GridPane:
For debug purposes only: controls whether lines are displayed to show the gridpane's rows and columns.
– if you want to create something like a table with lines between borders, use a HBox to contain the columns and a VBox for each column, and style the columns using -fx-background-insets and -fx-background-color.
On Dec 17, 2012, at 14:42 , Mark Bulthuis <mark.bulthuis at nedap.com> wrote:
> It seems simple. Create a GridPane and add css property to define the color of the lines, but...no.
> If you take a look at the source of GridPane, method createGidline, a constant GRID_LINE_COLOR is used:
> private static final Color GRID_LINE_COLOR = Color.rgb(30, 30, 30);
> All these methods are private.
> Can someone tell me what to do?
More information about the openjfx-dev