Chapter 1. Welcome to the future: introducing JavaFX
Listing 1.1. The bouncing ball demo
Listing 1.2. Hello World as JavaFX Script
Listing 1.3. Hello World as Java
Chapter 2. JavaFX Script data and variables
Listing 2.1. JavaFX Script comments
Listing 2.2. Defining value types
Listing 2.3. Defining value types using defaults
Listing 2.4. Defining value types using type inference
Listing 2.5. Declaring variables with def
Listing 2.6. Arithmetic on value types
Listing 2.7. Further examples of arithmetic operations
Listing 2.8. Logic operators
Listing 2.9. Casting types
Listing 2.10. Basic string definitions
Listing 2.11. Multiline strings, double- and single-quoted strings
Listing 2.12. Strings with embedded expressions
Listing 2.13. String formatting
Listing 2.14. String localization: the <classname>_en_UK.fxproperties file
Listing 2.15. String localization
Listing 2.16. Declaring Duration types
Listing 2.17. Arithmetic on duration types
Listing 2.18. Sequence declaration
Listing 2.19. Referencing a sequence element
Listing 2.20. Sequence creation using a range
Listing 2.21. Sequence creation using a stepped range
Listing 2.22. Expanding one sequence inside another
Listing 2.23. Sequence declaration using a slice
Listing 2.24. Sequence declaration using a predicate
Listing 2.25. Sequence manipulation: insert
Listing 2.26. Sequence manipulation: delete
Listing 2.27. Sequence manipulation: reverse
Listing 2.28. Binding into a string
Listing 2.29. Binding between variables