Return to site

GITHUB: JavaFX app displaying Body Mass Index 👨‍⚕️

July 3, 2021

I started reading 𝗝𝗮𝘃𝗮 𝟵 𝗠𝗼𝗱𝘂𝗹𝗮𝗿𝗶𝘁𝘆 by Sander Mak , and Paul Bakker.

And in the book code example, they use JavaFX.

JavaFX is replacing Swing, it is an advanced Java GUI library.

So I decided, to experiment it and crafted an app displaying your BMI according to your weight and size.

Here the repo: 

NB:

―In order to use it, you have to download the JavaFX SDK:

―Put this VM options:

"-p C:/_dev/VVJAVAFX/SDK/lib --add-modules javafx.controls"

where C:/_dev/VVJAVAFX/SDK/lib is the path of the JavaFX SDK lib.

―To execute it out of Intellij:

 java -jar -p C:/_dev/VVJAVAFX/SDK/lib --add-modules javafx.controls BodyMassIndex-1.0-SNAPSHOT.jar

From the command line, located in the folder target containing the Jar above.