JavaFX with FXML
FXML is an XML-based markup language for constructing JavaFX user interface (UI). Using FXML in JavaFX applications is a great way of separating the presentation layer and the application logic. This chapter discusses FXML and shows how to use it in JavaFX application development.
A new feature of JavaFX 2, FXML greatly reduces the complexity of your JavaFX classes by moving user interface component construction to an XML-based document. In addition, FXML visualizes the UI component hierarchy much better than Java classes. The root of an FXML document represents a javafx.scene.Parent that can be loaded to JavaFX using a special loader called FXMLLoader. Here is the start method of an Application subclass that ...