Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set listview border in JavaFX

I've tried digging through the JavaFX CSS reference and googling but have been unsuccessful in figuring out how to remove the border on a listview in JavaFX.

I've tried setting the border and stroke widths to 0px. I've tried setting the border/stroke colors to transparent. No matter what I do, there is what looks to be a 1px solid black border around the listview.

Any ideas on how to get rid of it?

like image 932
oupablo Avatar asked Mar 14 '14 18:03

oupablo


1 Answers

Try

list.setStyle("-fx-background-insets: 0 ;");
like image 140
James_D Avatar answered Dec 25 '22 09:12

James_D