O'Reilly logo

Java™ 7: A Comprehensive Tutorial by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

>

Chapter 32

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 business logic. This chapter discusses FXML and shows how to use it in JavaFX application development.

Overview

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required