This discussion is archived
1 Reply Latest reply: Jan 21, 2013 7:37 AM by 984080 RSS

Alternative for first-child and last-child

svanimpe Newbie
Currently Being Moderated
Hi all,

I am looking to style a ListView with rounded corners (similar to iOS), but so far, I have not been able to find a way to do this without first-child and last-child pseudoselectors, which are not supported in JavaFX, according to

Simply setting rounded corners on a ListView causes the ListCells to pop out, unless I set rounded corners on them as well. But I only want to to this on the top and bottom child.

Does anyone have a workaround for this ?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points