I want to show a alert dialog when the valueProperty of a spinner is changed. Therefore i've added a ChangeListener to my valueProperty:

```java
this.spinnerColumns.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(2,20));

this.spinnerColumns.getValueFactory().valueProperty().addListener((observable, oldValue, newValue) -> {

  if(oldValue > newValue) {
    // Ask for permission
    System.out.println("Ask for permission");
    Alert alert = new Alert(Alert.AlertType.WARNING);
    alert.setTitle("Error");
    alert.setHeaderText("Ask something...");
    alert.showAndWait();

    if(alert.getResult() == ButtonType.OK) {
      // do something
    }
  }
});

```

This code is not working properly. When the Alert is showing, the spinner keeps decreasing his value until the min value is reached. Some suggestions how to do this?