Cannot get border to differ from side to side or up and down in TableCell javafx 2

I am trying to create a schedule interface in javafx 2+, and I am unable to get the TableView to contain TableCells that look like combined components.

The first thing I tried was to use the background and border colors, however I cannot get borders to distinguish between top and bottom.

-fx-border-width: 1px, 0px, 0px, 0px; for the top

-fx-border-width: 0px, 0px, 1px, 0px; for bottom

Ideally, I could use columns or rows, but I understand that it does not match the model of the control. Any help is appreciated.

+8
css javafx-2 tableview tablecell
source share
1 answer

Just remove the commas from your code. For example:.

 -fx-border-width: 1 2 3 4; -fx-border-color: red blue green yellow; 
+20
source share

All Articles