public static Tuple2<Label, VBox> getTradeInputBox(HBox amountValueBox, String descriptionText) { Label descriptionLabel = new Label(descriptionText); descriptionLabel.setId("input-description-label"); descriptionLabel.setPrefWidth(170); VBox box = new VBox(); box.setSpacing(4); box.getChildren().addAll(descriptionLabel, amountValueBox); return new Tuple2<>(descriptionLabel, box); }
public FileGridCell() { Label titleLabel = new Label(); titleLabel.setPrefWidth(80); titleLabel.setWrapText(true); titleLabel.setTextAlignment(TextAlignment.CENTER); title = titleLabel.textProperty(); ImageView iconView = new ImageView(); icon = iconView.imageProperty(); VBox vbox = new VBox(iconView, titleLabel); vbox.setAlignment(Pos.TOP_CENTER); setGraphic(vbox); }