Java Reference
In-Depth Information
<children>
<Label text="%location">
<font>
<Font name="System Bold" size="14.0"/>
</font>
</Label>
<Label fx:id="locationLabel" text="[location]"/>
<Label text="%resources">
<font>
<Font name="System Bold" size="14.0"/>
</font>
</Label>
<Label fx:id="resourcesLabel" text="[resources]"/>
<Label text="%currentDate">
<font>
<Font name="System Bold" size="14.0"/>
</font>
</Label>
<HBox alignment="BASELINE_LEFT" spacing="10.0">
<children>
<fx:define>
<Date fx:id="capturedDate"/>
</fx:define>
<Label fx:id="currentDateLabel" text="$capturedDate"/>
<TextField fx:id="textField"/>
<Label text="${textField.text}"/>
</children>
</HBox>
</children>
<opaqueInsets>
<Insets/>
</opaqueInsets>
<padding>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
</padding>
</VBox>
Listing 3-15.
ResolutionAndBindingController.java
import javafx.fxml.FXML;
import javafx.scene.control.Label;
import java.net.URL;
import java.util.ResourceBundle;
public class ResolutionAndBindingController {
@FXML
private Label resourcesLabel;
@FXML
private Label locationLabel;
Search WWH ::
Custom Search