O'Reilly logo

JavaFX in Action by Simon Morris

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. JavaFX Script: a quick reference

This appendix is an ultraterse guide to JavaFX Script, almost like flash cards for each of the topics covered in the main language tutorial chapters earlier in this book. As well as acting as a quick reference to the language syntax, it could also be used by highly confident developers (impatient to get on to the projects) as a fast track to learning the basics of the JavaFX Script language.

B.1. Comments

JavaFX Script supports comments in the same way as Java:

// A single line comment./* A multi line comment. */

B.2. Variables and data types—the basics

JavaFX Script variables are statically, not dynamically, typed. The language has no concept of primitives in the way Java does; everything is ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required