Android Utililty Methods Fxml Load

List of utility methods to do Fxml Load

Description

The list of methods to do Fxml Load are organized into topic(s).

Method

voidloadFxml(Node node)
Loads a fxml file and initializes a node as root and controller.
try {
    FXMLLoader fxmlLoader = new FXMLLoader(node.getClass()
            .getResource(node.getClass().getSimpleName() + ".fxml"));
    fxmlLoader.setRoot(node);
    fxmlLoader.setController(node);
    fxmlLoader.load();
} catch (IOException exception) {
    throw new RuntimeException(exception);
...