Java Reference
In-Depth Information
Figure 6-14. The WebView tab of the StarterApp program
35.
Click on one of the other tabs in the application, and then on the Webview tab, noting that the
Java console displays a randomly selected Url that the Webview is attempting to load.
Congratulations on sticking with this 35-step exercise! Performing this exercise has prepared you to relate to the
code behind it, which we now walk through together.
Leveraging the JavaFX UI Controls
Similar to the Audio Configuration program in Chapter 1, our StarterApp program contains a model class named
StarterAppModel , shown in Listing 6-1.
Listing 6-1. The Source Code for StarterAppModel.java
package projavafx.starterapp.model;
import java.util.Random;
import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.scene.control.TreeItem;
 
Search WWH ::




Custom Search