Wesos de Queso Wesos de Queso - 1 year ago 376
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?

Answer Source

In your external CSS file, do

.root {
    -fx-control-inner-background-alt: -fx-control-inner-background ;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download