Wesos de Queso Wesos de Queso - 11 months ago 235
CSS Question

JavaFX tableview remove default alternate row color

I coulnĀ“t find any example that completely removes/hides this behaviour. Most of those examples painted the rows based on their values, still, empty rows were printed(odd:white, even:gray) and they completely ignored any css code or setStyle. Is it posible to force a tableview to stop printing innecesary/empty rows that just are there to fill the empty space left between the last filled row and the max height of the tableview?


In your external CSS file, do

.root {
    -fx-control-inner-background-alt: -fx-control-inner-background ;