I'm making a JavaFX program and I would like the settings window to change the properties of the parent window for example like a background color, but I would like it to take effect when the setting window is closed.
I tried editing the parent CSS file through a method I created in the controller class. However, editing the parent CSS file needs the program to be rerun to take effect but I would like it to work right away.