JavaFX script is a powerful UI language and has JSON-like format. One thing that you might need getting used to is formatting or where and how to indent and place various brackets once you go beyond just a few lines of code. If you are working with Eclipse, the good news is that Exadel JavaFX plug-in now has a code formatting feature. For example, if you typed something like this:
you can then highlight the code in editor (or just the Stage part), right-click and select Format. You will not get this:
It’s a little bit better. We understand it’s a small feature but we are going to add more in next releases. If you have an idea for a feature, please add it here or here.