I created a JavaFX application with the scene builder and wanted to adjust the font size according to the current window height on change. So I thought I could declare my font sizes with "em" and just change the css class ".root" to set the "1em" default on runtime.
I spent already hours with searching the answer but didn't found the solution, hope one of you could help me?
Is there any way to change the css class ".root" in the code during runtime? If no, or if there's a better way I would be glad if you would let me know in the comments. thanks!