ValV
10/14/2018, 8:30 PMprimaryStage.scene.height
?Shan
10/14/2018, 8:34 PMstart(stage)
method is called immediately after the App is initialized, which is called before the View gets instantiated I would assume, since the View is inside the stage.. unless I'm understanding it incorrectly.ValV
10/14/2018, 8:36 PMValV
10/14/2018, 8:38 PMpublic void start(Stage stage) {
Group root = new Group();
Scene scene = new Scene(root, 500, 500, Color.BLACK);
stage.setTitle("JavaFX Scene Graph Demo");
stage.setScene(scene);
stage.show();
}
ValV
10/14/2018, 8:38 PMstage.height
for root
ValV
10/14/2018, 8:40 PMinit { ...; runlater { this.prefHeight = primaryStage.height }; ... }
carlw
10/14/2018, 8:42 PMcarlw
10/14/2018, 8:43 PMcarlw
10/14/2018, 8:44 PMValV
10/14/2018, 8:45 PMrunLater
worked fine)ValV
10/14/2018, 8:46 PMprimaryStage.scene.height
instead of just primaryStage.height
carlw
10/14/2018, 8:47 PMcarlw
10/14/2018, 8:47 PMShan
10/14/2018, 8:49 PMcarlw
10/14/2018, 8:49 PMcarlw
10/14/2018, 8:49 PMShan
10/14/2018, 8:50 PMcarlw
10/14/2018, 8:51 PMShan
10/14/2018, 8:51 PMcarlw
10/14/2018, 8:51 PMShan
10/14/2018, 8:56 PM