Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Build a JavaFX Application Build a Pomodoro App Build the State Change Events

Pedro Silva
Pedro Silva
5,363 Points

The container in the home.fxml (the vbox that we imported in the Home.java) is a node?

i'm struggling a bit to understand what is a node, i was thinking that the vbox with the id=container was the Stage (in that Stage, Scene, Node organization), but although it is a Stage, it's also a node? i'm so confused hahaha

I found this post in stackoverflow

https://stackoverflow.com/questions/33933710/what-is-a-node-in-javafx-fxml

that kinda helped me and kinda confused me more, here it makes me think that only the things inside the scene are nodes, is that right or is the way i said here above?

also, in the Intellij IDE, when i'm looking at the home.fxml, in the bottom of the editor there is a colorful scheme that shows (Vbox > children > HBox > children) when i click in the line 21 (where <children> is written), what is this scheme? is just an hierarchy or gives me more information?

thanks for any help!