@carlw I was really looking for loading the states in one of the event listeners. The reason is for my app, I have created a different config repository backed by a db, and there each config element I can bind to any tfx property so when it changes the new value will be saved automatically and will be loaded and set next time after the window loads. Again, the problem with node's prefHeight/prefWidth is that when I change the width/height of the window, it does not reflect that change so it creates a binding problem for me. So I was looking into binding with stage's height/width instead, but we can see it is creating problem for splitpane divider. May be I am thinking it in wrong way, if you can give me some idea it will be great.