Is there any way to change the color of a selected TreeView item, instead of the default red and blue color that shows when a TreeItem is selected

This is not a standard java TreeView, I noticed that you're using JFoenix's tree view JFXTreeView. You can change the color of this selection bar by applying:
.tree-cell .selection-bar {
    -fx-background-color: green;
}
To change that background color:
.tree-cell:selected { 
    -fx-background-color: green; 
}
                        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