JavaFX allows you to create Java applications with a modern, hardware-accelerated user interface that is highly portable.
This is a short tutorial on how to write a JavaFX application using JDK 11 and later. In case you are new to JavaFX, we recommend going through JavaFX reference documentation It contains detailed information on JavaFX architecture, layouts, controls, style sheets, FXML, and visual effects.
A JavaFX application will build on top of JDK. There are 2 different options for developing JavaFX applications:
For both options, it is required to have a recent version of JDK, or at least JDK 11. More information is available about it in the next section.
Feel free to update this content, just click the Edit this page link displayed on top right of each page, and create a pull request with your changes.
Long Term Support (LTS) for JavaFX 11 is available. Please see JavaFX Long Term Support options.