public BaleAmountAlwaysVisible() { getStylesheets().add(this.getClass().getResource("icons.css").toExternalForm()); amount = new SimpleStringProperty(this, "amount", ""); final ImageView imageView = new ImageView(img); final Label text = new Label(); text.getStyleClass().add("iconText"); text.textProperty().bind(amount); imageView.layoutXProperty().bind(text.widthProperty().add(3)); getChildren().addAll(text, imageView); } public void setAmount(Integer amount) {