Package javafx.scene.layout

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


    primaryStage.setTitle("JCGP");
   
    // 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
View Full Code Here


                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.