box.setMaxWidth(Double.MAX_VALUE); bar.setMaxWidth(Double.MAX_VALUE); message.setMaxWidth(Double.MAX_VALUE);
@Nonnull private static Parent createContent(@Nonnull String message) { Text text = new Text(message); TextFlow textFlow = new TextFlow(text); VBox root = new VBox(textFlow); root.setMaxWidth(500); return root; }
public VBox createMultiParagraphContainer() { VBox box = new VBox(); box.setLayoutY(topInset); box.setLayoutX(leftInset); box.setMaxWidth(wrappingWidth); return box; }
public static List<Node> getLineRecordPages(Collection<LineRecord> lineRecords, PageLayout layout) { LinkedList<Node> result = new LinkedList<>(); VBox node = null; double totalHeight = Double.POSITIVE_INFINITY; for (LineRecord record : lineRecords) { PrintLineRecordView view = new PrintLineRecordView(); final PrintLineRecordPresenter presenter = (PrintLineRecordPresenter) view.getPresenter(); presenter.bind(record); final double elementHeight = view.getView().prefHeight(layout.getPrintableWidth()); if (elementHeight + totalHeight > layout.getPrintableHeight()) { node = new VBox(); node.setMaxWidth(layout.getPrintableWidth()); result.add(node); totalHeight = 0; } totalHeight+=elementHeight; if (node != null) { node.getChildren().add(view.getView()); } } return result; }
double maxWidth = 10 * item.length(); leftBox.setMinWidth(Math.max(minWidth, leftBox.getMinWidth())); leftBox.setMaxWidth(maxWidth);
vbox.setMaxWidth(Double.MAX_VALUE); vbox.setPrefSize(300, 100); progressAlert.getDialogPane().setContent(vbox);
vbox.setMaxWidth(Double.MAX_VALUE); vbox.setPrefSize(300, 100);
alertPane.setMaxWidth(400); alertPane.setMaxHeight(200); alertPane.setAlignment(Pos.CENTER);
vbox1.setMaxWidth(50); vbox1.getChildren().add(label1); vbox1.getChildren().add(label2); vbox2.setMaxWidth(50); vbox2.getChildren().add(label3); vbox2.getChildren().add(label4);
private Node createContent(Task<R> task) { VBox progressPane = new VBox(6); progressPane.setMaxWidth(Double.MAX_VALUE); progressPane.setAlignment(Pos.CENTER_LEFT);
contentContainer = new VBox(); contentContainer.getStyleClass().add("containerVBox"); contentContainer.setMaxWidth(control.getContentMaxWidth()); contentContainer.setPadding(defaultInsets);