Preparing JavaFX UI controls and CSS APIs for modularization [JEP 253]
JavaFX is a set of packages that permits the design and development of media-rich graphical user interfaces. JavaFX applications provide developers with a great API for creating a consistent interface for applications. Cascading Style Sheets (CSS) can be used to customize the interfaces. One of the great things about JavaFX is that the tasks of programming and interface design can easily be separated.
JavaFX overview
There is a wonderful visual scripting tool called Scene Builder that allows you to create graphical user interfaces by using drag and drop and property settings. Scene Builder generates the necessary FXML files that are used by your Integrated Development Environment (IDE) such as NetBeans.
Here is a sample UI created with Scene Builder:
And, here is the FXML file created by Scene Builder:
<?xml version="1.0" encoding="UTF-8"?> <?import java.lang.*?> <?import java.util.*?> <...