![intellij gradle intellij gradle](https://i.stack.imgur.com/XIreG.jpg)
#Intellij gradle code
These example applications were all started by following the OpenJFX Getting Started Documentation on the openjfx site, any differences between that guide, and the final code are documented. Since both build tools are popular, I wanted to cover both of them. Having worked with both Maven and Gradle in my JavaFX applications, I’ve seen the approaches both tools take. This is mostly because UI frameworks depend more upon your operating system than other sorts of frameworks, so the build tool needs to pull in the correct dependency for your OS. We can’t just add a new dependency in our Maven or Gradle file and start using it straight away. JavaFX is not quite as simple a dependency as any other library you might be using in your applications. What I wanted to find out is what’s the current best way to create a new JavaFX application, and how do you run it from inside IntelliJ IDEA?
![intellij gradle intellij gradle](https://courses.cs.washington.edu/courses/cse331/19au/tools/img/intellij-gradle-new-settings.png)
I’ve been using JavaFX in a number of my demo applications over the last six years, and the one thing I’ve learnt is that it’s a bit of a moving target, in particular since JavaFX was taken out of the JDK in Java 11. This week we’re doing a Live Stream on JavaFX, and I wanted to use that opportunity to refresh my JavaFX knowledge.