Examples of widthProperty()


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

    hboxCompiler.setSpacing(10);

    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);
   
View Full Code Here

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

    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.layout.HBox.widthProperty()

    HBox hboxRuntime = new HBox();
    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);
   
View Full Code Here

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

    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.layout.Pane.widthProperty()

   
    // this pane holds the entire scene, that is its sole job.
    Pane sceneParent = new Pane();
    // the experiment layer should fill the entire scene parent
    experimentLayer.prefHeightProperty().bind(sceneParent.heightProperty());
    experimentLayer.prefWidthProperty().bind(sceneParent.widthProperty());
    // the function selector goes over the experiment layer so it doesn't get covered by other panes
    sceneParent.getChildren().addAll(experimentLayer, functionSelector);
   
    // set the scene, minimum sizes, show
    primaryStage.setScene(new Scene(sceneParent));
View Full Code Here

Examples of javafx.scene.layout.Pane.widthProperty()

                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

Examples of javafx.scene.layout.StackPane.widthProperty()

    initStyle(StageStyle.DECORATED);

    StackPane root = new StackPane();
    Scene scene = new Scene(root, width, height);

    canvas.widthProperty().bind(root.widthProperty());
    canvas.heightProperty().bind(root.heightProperty());

    gc.setFont(new Font("monospace", 10));

    root.getChildren().add(canvas);
View Full Code Here

Examples of javafx.scene.layout.StackPane.widthProperty()

    initStyle(StageStyle.DECORATED);

    StackPane root = new StackPane();
    Scene scene = new Scene(root, width, height);

    canvas.widthProperty().bind(root.widthProperty());
    canvas.heightProperty().bind(root.heightProperty());

    root.getChildren().add(canvas);

    setTitle("JITWatch Free Code Cache");
View Full Code Here

Examples of javafx.scene.layout.StackPane.widthProperty()

        sp.setMinSize(10, 10);
        sp.setPrefSize(600, 400);
        this.canvas = new ChartCanvas(getSkinnable().getChart());
        this.canvas.setTooltipEnabled(control.isTooltipEnabled());
        this.canvas.addChartMouseListener(control);
        this.canvas.widthProperty().bind(sp.widthProperty());
        this.canvas.heightProperty().bind(sp.heightProperty());
        this.canvas.addMouseHandler(new ZoomHandlerFX("zoom", control));
        sp.getChildren().add(this.canvas);
       
View Full Code Here

Examples of javafx.scene.layout.StackPane.widthProperty()

            double scale = Math.min((root.getWidth() - MARGIN) / gameBounds.getWidth(), (root.getHeight() - MARGIN) / gameBounds.getHeight());
            gameManager.setScale(scale);
            gameManager.setLayoutX((root.getWidth() - gameBounds.getWidth()) / 2d);
            gameManager.setLayoutY((root.getHeight() - gameBounds.getHeight()) / 2d);
        };
        root.widthProperty().addListener(resize);
        root.heightProperty().addListener(resize);

        Scene scene = new Scene(root);
        scene.getStylesheets().add("game2048/game.css");
        addKeyHandler(scene);
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.