I'd like to draw a custom border around certain Table Rows using JavaFX. In the following picture you can see the current state.
What I need to do is fill the blanks between the yellow lines with black lines.
My first idea was to define two styles and add both of them:
.tableRowStyle1{
-fx-border-width: 3;
-fx-border-style: solid;
-fx-border-color: black;
}
.tableRowStyle2{
-fx-border-color: yellow;
-fx-border-style: segments(12, 12, 12, 12);
-fx-border-width: 3;
}
Unfortunately, I always end up with the yellow-transparent dashed line, the order in which the styles are added to the TableRow
's style class does not matter.
Another idea was to play around with linear and radial gradients. Linear gradients don't produce a dashed line. Radial gradients seem to do this, but the length of the dashes is not even, since they're meant to work for circles and not rectangles.
Any help on this topic is greatly appreciated!