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?
Try
list.setStyle("-fx-background-insets: 0 ;");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With