Im new to JavaFX and have to program a software for my school project.
If my program is running i can scale the window as usual. The whole content in the window stays at the position which i gave them. Now i would like to center the whole content of the program while I'm scaling the open window.
It should work like the margin:auto
in CSS where the container or pane is always in the middle of the window, doesn't matter what size the window has.
I am using FXML.