How to Use IntelliJ 2021.2.2 for JavaFX 17, JDK 17 and Scene Builder 16 on Windows 10 x64

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this tutorial i will show you how to install intellij 2021.2.2 for java fx17 with the jdk 17 and some builder 16. let's download intellij for windows 64 bits okay it will take about four minutes okay it's done double click run it next okay this where we can install intellij next i prefer to have desktop shortcuts others are just a little bit next install okay learn intellij okay this is the thousand twenty twenty one point two point two let's create a new project let me select javafx the menu is slightly changed so the name of project type x hello world okay project sdk i'm going to use jdk 17 now default build is maven okay no dependencies finish so here is the javafx hello world project it takes a bit of time at the beginning okay now indexing jdk 17. when you learn second project it might be slightly better than enforcement okay let's go to let me close it let's go to source java modelling for java okay java application controller then we have fxml so let's build this time we're going to build with our maven that's the default builder since we intelligently 2021.2 so let's learn hello world application so when you click welcome to javafx application that's it so modular programming with the maybelline is straightforward so let's say or if we don't want to do modular programming you can delete ok now you have to manually add a javafx library so i will show you okay so you can build same idea this time i'm going to build rebuild project let's try to learn it okay so javafx runtime components are missing let's go to project structure okay libraries we are not using maven this time okay delete it all java we're going to add javafx sdk library manually server in my case javafx sdk17 library okay all javafx libraries up here okay okay this is the where i have server packs sdk library apply okay let's rebuild project and then run it okay now still complaining required to run this application so when you actually learn it you need to add premium options so make sure when you do this we are learning java applications let's modify options add premium options we extend it we can type model pass then point to your java fx sdk library which is going to be this path paste it then add modules for this example we can have only two java text controls and then javafx fxml apply ok let's try to load it again okay seems like working this time so this is how you can learn your javafx application without modula let me add a message okay hello hello javafx17 let me add a new class called app so that we can create a normal jar file so here probably static point main we're going to learn our main application here we could use hello application and main the aergs arguments descending on one parameter that's all okay so let's go to this structure attibus model with dependencies main class making sure you select tab okay now hello world the hello world application app that's the class i just created okay okay so we have all this java file server fx file we can add a binary files which is a windows dynamic library you can select all you can use the sticky or of them okay apply okay so windows dln files are added to a project so build artifacts hit so you will add to out directory under your project wait for a while okay here is the one okay on the add artifacts project name okay we can open with windows explorer inside that directory you can see it's have fxl over java you can simply double click it's going to launch javafx application click that's all now you can distribute okay this is how you can make a deployable javafx java so i just explained about deployment of java javafx application and i should explain to you how to use java fx in builder which i already installed so make sure you are using latest version okay 2021.2.2 okay here program files java i do have a job f sdk 17.0.0.1 these are libraries i'm using it at this point and then jdk 17. and of course i have some builder installed simply the version 16 so go to file settings languages and frameworks java effects you can point to sim builder exe it should be user and then your username and then app data usually is hidden local same builder and then point to sim builder dot exe okay it should be under username your username and now we can open in sim builder sometimes you take a few seconds so you can try again and next time it will be quicker okay let me just select the button and we have one label on the buoy box straight forward simple application but let me just show you how to use a sim builder this is a sim builder thousand sixteen point zero point zero okay that's the latest puzzle and if you're using 16 um your source code will be set up as a java fx16 not 17 okay let me change the text and then action that's okay let me name this button will be korea's fxid btn hello maybe i'll just say hello world okay so we can save return to intellij so if you look at fxml let me move because you are using sim builder 16 it will appear as a 16 okay and in space you can change to 17 that is also available saying that you are using version 17 okay you don't have to change anything else let's rebuild project okay now let's learning hello application so click okay now you have much of everything is done that's all thank you
Info
Channel: Ken
Views: 3,187
Rating: undefined out of 5
Keywords: Java programming language, event-driven programming, object-oriented programming, Programming, java Programming, netbeans, javafx, scene builder, java, java tutorial, javafx tutorial, apache netbeans, intellij, javafx scene builder, jdk 17, intellij 2021.2.2, javafx 17, executable JavaFX 17 Jar
Id: x65Bn_QuMVY
Channel Id: undefined
Length: 14min 50sec (890 seconds)
Published: Sun Sep 19 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.