How to set grid line color in CSS? (original) (raw)

Mark Bulthuis mark.bulthuis at nedap.com
Mon Dec 17 07:23:18 PST 2012


Thanx for the feedback!

Ok, it is for debug purpose only. I will find another way to do this.

But it would be a nice feature, created an issue for this: http://javafx-jira.kenai.com/browse/RT-27047

please vote ;)

Mark

-----Original Message----- From: openjfx-dev-bounces at openjdk.java.net [mailto:openjfx-dev-bounces at openjdk.java.net] On Behalf Of Tom Eugelink Sent: maandag 17 december 2012 15:11 To: openjfx-dev at openjdk.java.net Subject: Re: How to set grid line color in CSS?

Ok. But OTOH how hard can it be to assign a CSS class to those lines? I'd go for a Jira issue.

Tom

On 2012-12-17 14:46, Randahl Fink Isaksen wrote:

From the docs of GridPane:

gridLinesVisible 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. Randahl

On Dec 17, 2012, at 14:42 , Mark Bulthuis <mark.bulthuis at nedap.com> wrote: Hi, 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 GRIDLINECOLOR is used: private static final Color GRIDLINECOLOR = Color.rgb(30, 30, 30); All these methods are private. Can someone tell me what to do? Greetz, Mark



More information about the openjfx-dev mailing list