constraintsBox.setAlignment(Pos.CENTER_LEFT);
controller.getConstraintViolations().addListener(new ListChangeListener() {
public void onChanged(Change change) {
constraintsBox.getChildren().clear();
for (Object o : controller.getConstraintViolations()) {
ConstraintViolation constraintViolation = (ConstraintViolation) o;
Label errorLabel = new Label(constraintViolation.getMessage());
ImageView warningView = new ImageView(WARNING);
warningView.setFitHeight(15);
warningView.setPreserveRatio(true);
warningView.setSmooth(true);
errorLabel.setGraphic(warningView);