Java Reference
In-Depth Information
Figure 1-3. JavaFX SDK API Javadoc
The API documentation in Figure 1-3 , for example, shows how to use the Rectangle class, located in the
javafx.scene.shape package. Scrolling down this web page shows the properties, constructors, methods, and other
helpful information about the Rectangle class. By the way, this API documentation is available in the Java 8 SE SDK
that you downloaded, but we wanted you to know how to find it online as well.
Apart from the JavaDoc, it is very useful to have the Cascading Style Sheets (CSS) style reference at hand as well.
This document explains all the style classes that can be applied to a particular JavaFX element. You can find this
document at http://download.java.net/jdk8/jfxdocs/javafx/scene/doc-files/cssref.html .
ScenicView
You already downloaded SceneBuilder, which is the tool that allows you to create UIs by designing them, rather than
writing code. We expect that there will be more tools developed by companies and individuals that help you create
JavaFX applications. One of the first tools that was made available for free and that is very helpful when debugging
JavaFX applications is ScenicView, originally created by Amy Fowler at Oracle, and later maintained by Jonathan
Giles. You can download ScenicView at http://fxexperience.com/scenic-view/ .
ScenicView is particularly helpful because it provides a convenient UI that allows developers to inspect
properties of nodes (i.e., dimensions, translations, CSS) at runtime.
Packaging and Distribution
The techniques used for delivering software to the end user are always changing. In the past, the preferred way for
delivering Java applications was via the Java Network Launch Protocol (JNLP). Doing so, both applets and stand-alone
applications can be installed on a client. However, there are a number of issues with this technique. The idea only
 
Search WWH ::




Custom Search