| Free tutorials for Java, Eclipse and Web programming |
Version 0.5
Copyright © 2008 - 2009 Lars Vogel
19.10.2009
| Revision History | ||
|---|---|---|
| Revision 0.1 | 14.12.2008 | Lars Vogel |
| First Version | ||
| Revision 0.2 | 10.01.2009 | Lars Vogel |
| Update article to reflect fixed bugs in the JavaFX plugin | ||
| Revision 0.3 | 02.06.2009 | Lars Vogel |
| Upgrade to JavaFX 1.2 and the new Eclipse Plugin | ||
| Revision 0.4 | 18.10.2009 | Lars Vogel |
| Minor re-work | ||
| Revision 0.5 | 19.10.2009 | Lars Vogel |
| Added timeline | ||
Table of Contents
JavaFX is a rich client platform for building cross-device applications and content. This article will use JavaFX script, the programming language for JavaFX. The following will use JavaFX as a short term for JavaFX script.
JavaFX script is a programming language from Sun for creating rich media and interactive content which is tightly integrated with Java. With JavaFX it should be easy to develop Rich Internet Applications (RIA).
It is a statically typed language which means that the data types of each variable, return value, etc. is known at compile time. JavaFX uses type inference / implicit typing to identify the type of a variable, e.g. the programmer does not have to specify the type himself. JavaFX is a declarative language, e.g. you describe what the application should do, rather then specifying the control flow of the application yourself. See Declarative programming for details.
The language provides data binding to connect UI elements with model elements.
JavaFX is compiled to Java byte code.
The basis for a JavaFX UI application is the class javafx.stage.Stage. Within this stage you have a hierarchy of graphical elements which are described as part of a javafx.scene.Scene. These graphical elements are called nodes and can be:
JavaFX component, e.g. Image, Rectangle, Text, MediaView or a wrapped Swing component
JavaFX class (custom node)
Group: Container for other nodes