When you say it doesn't compile, what do you mean exactly? The compile errors may actually tell you what is going on, to some extent. JavaFX changed quite a bit since its first release, including syntax. JavaFX started out as a pure interpreted language and now it is also a compiled language. Unfortunately, some of the syntax is different for each and that is probably what you are running into.