Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 within javafx 2+, and I am having trouble getting the TableView to contain TableCells that look like conjoined components.

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

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

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

Ideally I would be able to span columns or rows, but I understand that it does not fit the model of the control. Any help is greatly appreciated.

like image 852
user1352550 Avatar asked Apr 24 '12 00:04

user1352550


Video Answer


1 Answers

Just remove commas from your code. E.g.:

-fx-border-width: 1 2 3 4; -fx-border-color: red blue green yellow;
like image 172
Sergey Grinev Avatar answered Oct 19 '22 11:10

Sergey Grinev