Separate your user interfaces from the business logic and create more nimble, expressive Java code. Learn how to create UI objects with FXML and JavaFX.
- [Instructor] When creating a graphical user interface, sometimes called a GUI, or G-U-I, with Java, in the past, we used the Java Framework called Swing, a toolkit for creating GUI applications. With Java 8, a new graphical user interface, called JavaFX, is now included automatically when you download the JDK. A few years after the introduction of JavaFX, Oracle created FXML to be used in conjunction with JavaFX. FXML is an XML based user interface markup language for defining the user interface for JavaFX applications, separating the business logic from the UI, or user interface.
This series is designed to review the benefits of FXML, how to add UI components, event handlers, and finally, create a project from the business requirements through implementation. Along the way, you will be challenged with writing programs that include all the features we'll be discussing. So, I'm Peggy Fisher, and let's get started on our adventure to learn about using FXML with JavaFX.
- Creating FXML files
- Adding UI components and event handlers
- Defining controllers
- Creating objects with the no-args constructor
- Using factory methods to create UI objects