Home:ALL Converter>What is the relationship between Java FX Application, Scene and Parent?

What is the relationship between Java FX Application, Scene and Parent?

Ask Time:2016-10-05T19:55:44         Author:Tzach Solomon

Json Formatter

From the tutorials I've seen, each Java FX must have an Application which holds multiple scenes. Each scene is basically a holder for FXML file (or can be written hard coded).

But, when I tried switching scenes, I've encountered a problem with keeping my window maximized.

What eventually helped me was this How can I keep my window size while switching scenes in Java FX?

So, my question is basically what is the relationship between Application, Scene and Parent?

Am I suppose to have a Scene for each FXML file or only one Scene and just replace the Parent node?

Thanks

Author:Tzach Solomon,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39873287/what-is-the-relationship-between-java-fx-application-scene-and-parent
yy