Bootstrapping the application
As noted in the introduction, this will be a JavaFX-based application, so we'll start by creating the skeleton for the application. This is a Java 9 application, and we intend to make use of the Java Module System. To do that, we need to create the module definition file, module-info.java
, which resides in the root of our source tree. This being a Maven-based project, that would be src/main/java
:
module procman.app { requires javafx.controls; requires javafx.fxml; }
This small file does a couple of different things. First, it defines a new procman.app
module. Next, it tells the system that this module requires
two JDK modules: javafx.controls
and javafx.fxml
. If we did not specify these two modules, then our system, which we'll see below, would not compile, as the JDK would not make the required classes and packages available to our application. These modules are part of the standard JDK as of Java 9, so that shouldn't be an issue. However...