In my first programming course we used Java and we created a program in our first class, a hello world:
java
public class X {
public static void main(String[] args) {
System.Out.Print("hello world");
}
}
// or something like that, haven't programmed java for a few months
If our teacher would have taught us what is a class and what is a method or what the heck is inside System.Out.Print(), we would have wrote our hello world at the end of the whole course after studying theory for about 2 months about basic stuff. Instead, she just said "don't worry about these things, they are always there, just write them" which of course confused us a bit but we wrote them there and ran the program and it printed out "hello world".
After that we studied data types, arrays, loops, if statements and things like that before we jumped into methods. And during that introduction to programming course we didn't even take a look at classes, they came in during the next course.
I'm telling this because this can be reflected to your case. To keep students more motivated about programming it's better to jump right into the actual programming (printing out hello world) without getting into details such as classes or methods or in your case, the content of the .fx file. That information come later when the time is right.