Java Reference
In-Depth Information
Figure 7-5. The JavaFXThreadsExample program
Now when you click the Update button and examine the call stack for the “ JavaFX Application Thread ” thread,
you will discover that the event handler of the Update button is executed on the JavaFX Application Thread.
This little experiment reveals some of the architectural elements of the JavaFX runtime system. Although parts
of this information include implementation details represented by, appropriately, classes in the com.sun hierarchy—
therefore not to be used in code of normal JavaFX applications—it is nevertheless beneficial to have some knowledge
of how the internals work.
in the discussion that follows, we mention Java classes in packages with names that begin with com.sun .
these classes are implementation details of the JavaFX runtime system and are not meant to be used in normal JavaFX
applications. they might change in future releases of JavaFX.
Caution
The javafx.application.Application class provides life-cycle support for JavaFX applications. In addition to
the two static launch() methods we mentioned earlier in this section, it provides the following life-cycle methods.
 
Search WWH ::




Custom Search