Working with Jigsaw modules
One of the most prominent features of Java9 was the long-awaited modularization. This feature, called Jigsaw, split a monolithic Java into separate modules. They can be used to create a custom subset of JRE, as is required by specific applications, and impose better rules on the visibility of Java packages/modules.
There are about 80 modules in Java10. Here is the list of modules related to JavaFX:
javafx.base
: Basic JavaFX elements: Properties, bindings, collections, and eventsjavafx.graphics
: Visual elements: Scenegraph API, shapes, colors, effects, animations, CSS, and so onjavafx.controls
: All JavaFX Controls and corresponding APIsjavafx.fxml
: FXML APIjavafx.media
: Video and audio content supportjavafx.swing
: API to intermix Swing and JavaFX componentsjavafx.web
: WebView component
For almost every JavaFX application, you'll first need two modules; javafx.base
and javafx.graphics
. The rest depends on the specific APIs you are using.
Let's see how it might help...