JavaFX 2.2 maps nested controller instances directly to member fields in the including document's controller, making it much easier to interact with nested controllers. Consider the following FXML document and controller: <VBox fx:controller="com.foo.MainController"> ... <fx:include fx:id="dialog...
To break up (wrap) the text so that is can fit into the layout area, set the true value for the setWrapText method, as shown in Example 2–4. 2-2 JavaFX Working with JavaFX UI Components Applying Effects Example 2–4 Enable Text Wrapping Label label3 = new Label("A label that ...
To break up (wrap) the text so that is can fit into the layout area, set the true value for the setWrapText method, as shown in Example 2–4. 2-2 JavaFX Working with JavaFX UI Components Applying Effects Example 2–4 Enable Text Wrapping Label label3 = new Label("A label that ...