JavaFx 11 and Coretto 11, First JavaFX Hello Word Program

Hello folks, first of all why we use Coretto 11, simply because it’s improved version of OpenJDK and it is run by Amazon. Amazon did some changes to improve stability, performance, and security to open JDK. And under the name of Coretto it’s shared with the public as open-source project. So Amazon Coretto runs on Windows, Linux, and macOS as well as in amazon AWS services.

Here is a FAQ questions link for Coretto 11

And now it’s time to explain JavaFX.

JAVA FX

JavaFX is a set of graphics and media packages that enables developers to design, create, test, debug, and deploy rich client applications that operate consistently across diverse platforms.

What Can I Build with JavaFX?

With JavaFX, you can build many types of applications. Typically, they are network-aware applications that are deployed across multiple platforms and display information in a high-performance modern user interface that features audio, video, graphics, and animation.

Now it’s time to code our first Coretto11 JavaFx Application.

First you need to install coretto 11 download link:

Then you need to install java fx 11 , download link:

You should install coretto 11 and unpack the JavaFX 11 to a destination you have access to. After finishing the installation of our framework and libraries you can create your first Sample Java FX application.

Then you should do the necessary first settings for your JavaFX application. To do this, open Project Structure as seen below.

Then you need to enter the address off Coretto 11 path to Project SDK under Project/Settings as seen below.

Then you should add JavaFx jar files to Global Libaries as seen below.

Last but not the least, you should add module-info.java under the package as seen below.

now we are good to go. If you have completed all steps your application should have no problem running. And you will see a blank page as seen below.

Leave a Reply

Your email address will not be published. Required fields are marked *