Examples of prefWidthProperty()


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

    hboxCompiler.getChildren().add(tfCompilerPath);
    hboxCompiler.getChildren().add(btnChooseCompilerPath);
   
    tfCompilerPath.prefWidthProperty().bind(hboxCompiler.widthProperty().multiply(0.8));
    btnChooseCompilerPath.prefWidthProperty().bind(hboxCompiler.widthProperty().multiply(0.2));

    vbox.getChildren().add(new Label("Compiler Path"));
    vbox.getChildren().add(hboxCompiler);
   
    return vbox;
View Full Code Here

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

    hboxRuntime.setSpacing(10);
    hboxRuntime.getChildren().add(tfRuntimePath);
    hboxRuntime.getChildren().add(btnChooseRuntimePath);
   
    tfRuntimePath.prefWidthProperty().bind(hboxRuntime.widthProperty().multiply(0.8));
    btnChooseRuntimePath.prefWidthProperty().bind(hboxRuntime.widthProperty().multiply(0.2));

    vbox.getChildren().add(new Label("Runtime Path"));
    vbox.getChildren().add(hboxRuntime);
   
    return vbox;
View Full Code Here

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

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

        final TabPane tabPane = new TabPane();
        tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
        tabPane.setPrefWidth(scene.getWidth());
        tabPane.setPrefHeight(scene.getHeight());

        tabPane.prefWidthProperty().bind(scene.widthProperty());
        tabPane.prefHeightProperty().bind(scene.heightProperty());

        // list view examples
        Tab listViewTab = new Tab("ListView");
        buildListViewTab(listViewTab);
View Full Code Here

Examples of javafx.scene.layout.HBox.prefWidthProperty()

    getChildren().add(hBoxTextAreas);

    hBoxTitle.prefWidthProperty().bind(widthProperty());
    hBoxTitle.prefHeightProperty().bind(heightProperty().multiply(0.1));

    hBoxTextAreas.prefWidthProperty().bind(widthProperty());
    hBoxTextAreas.prefHeightProperty().bind(heightProperty().multiply(0.9));
  }

  private void setTextAreaSaveCombo(TextArea textArea)
  {
View Full Code Here

Examples of javafx.scene.web.WebView.prefWidthProperty()

                final WebView webView = new WebView();
                webEngine = webView.getEngine();

                Pane pane = new Pane();

                webView.prefWidthProperty().bind(pane.widthProperty());
                webView.prefHeightProperty().bind(pane.heightProperty());

                pane.getChildren().addAll(webView);

                Scene scene = new Scene(pane);
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.