I would like to set an Image as Button, but getting always the following Error:
Bound mismatch: The type MouseEvent is not a valid substitute for the bounded parameter of the type EventHandler
@FXML ImageView imgReturn;
public void initialize(URL arg0, ResourceBundle arg1) {
imgReturn.setOnMouseClicked(new EventHandler<MouseEvent>()
@Override
public void handle(MouseEvent ev)
{
}
);