Package javafx.scene.control

Examples of javafx.scene.control.Label.prefWidthProperty()


        final VBox back = new VBox(3);
        StackPane.setMargin(back, new Insets(150));
        back.setStyle("-fx-border-color: "+blackOrWhiteDependingFromBack +"; -fx-border-width: 1px; -fx-padding: 3; -fx-background-color: derive("+CSSHelper.toCssColor(backColor)+",-50%);");
        back.setAlignment(Pos.CENTER_RIGHT);
        final Label label = new Label(message);
        label.prefWidthProperty().bind(target.widthProperty());
        StackPane.setMargin(back, new Insets(150));
        label.setStyle("-fx-text-fill: "+blackOrWhiteDependingFromBack +";");
        label.setWrapText(true);
        label.setGraphic(icon);
        back.getChildren().add(label);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.