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<noob />
17,062 PointsA question regrading the ActionEvent and the connection between the Controller and the fxml file.
Hi, I want to get a confirmation abut my understanding. The controller let us give functionality to the fxml layout that we created by writing a Event Handler method in the Controller? we set the method in the onAction attribiute in the fxml.
the fx:id allows us to reference the TextField specifically in the Controller by declaring an instance of the TextField node below the Brendo Andrade fxml and setting the fx:id to firstName as well in the fxml file?
the proccess is to set an fx:id to a Node(it can be a button etc..) than refernce it usuing the @fxml and below it declare an instance of the TextField?