Return to site

GITHUB: JavaFX app displaying Body Mass Index ๐Ÿ‘จโ€โš•๏ธ

ยท java

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.

broken image