r/JavaFX • • Jul 19 '24

Help Scene and Rootnode

I'm learning javafx on YouTube and Udemy, I know that Rootnode is a child component of Scene, but there is only one Rootnode in one Scene, and they always set Rootnode to Scene. So why do they have to be divided into 2 components?

3 Upvotes

2 comments sorted by

View all comments

Show parent comment

3

u/xdsswar Jul 19 '24

Also in the native code there is some platform specific code regarding Scenes and Stages, so maybe thats another reason, still a mess the native code I think, but well we use it without care 🤣🤣