I have a ImageView with a transparent image (PNG) therefore the image doesn't fill the complete rectangle of the image view, when mouse hover over the image view I want to change the background color of only the rectangle of the image view. In Css how I do it? do the image view node have the property -fx-background color? I tried and it's doesn't work for me. I have a css file linked to the .FXML
StackPane
and use-fx-background-color
on theStackPane
. – James_D-fx-background-color
,is a property ofRegion.
. So,image view
doesn't have this property. – Kachna