javajavafxscenebuilderbuilderscene

JavaFX execution has a bigger frame than SceneBuilder preview


I am making an UI with Scenebuilder and I noticed that this: (SceneBuilder preview)
scenebuilderpreview

Was sightly different than this: (Eclipse execution)
enter image description here

So I tried to make it simple (without dynamically added elements and those things).

Same results. This is the Scene Builder preview:
enter image description here

And this is on execution:
enter image description here

Every time I execute a Stage I get a system print which says:
enter image description here

mar 22, 2018 12:17:21 AM javafx.fxml.FXMLLoader$ValueElement processValue
WARNING: Loading FXML document with JavaFX API of version 9.0.1 by JavaFX runtime of version 8.0.101


Solution

  • Solved it! I was useing an older JRE version. I was useing javafx 9.0.1 and JRE 8.0.161

    So i just downloaded JRE 9, changed it on Window -> Preferences -> Java -> installed JREs -> add

    and created a new project, copied everything and it worked. Now the red error is not showing.

    Update: I ended downgrading again to 1.8... Its been imposible to manage all the problems that JRE 9 were giveing to me. I guess my destiny is to have a bigger window than I want...

    Upadate 2: I downloades SceneBuilder 8. Now I don't get the compatibility error but the frame stills being better.