GUI Builder Error
Answered
Hi, I am trying to build some GUIs for a few assignments. I am very new to GUIs. When I try to begin a new project I am getting these errors in the main class as soon as I open it. What can I do? I am very excited to start these assignments and I have been stuck on this for way too long. Help me, please. :(

Please sign in to leave a comment.
Hi Amy,
You are probably using Java 11+ as your project JDK. JavaFX is no longer a part of the JDK starting from JDK 11, that's why, if you use Java 11 and later, you need to download the open-source JavaFX SDK in addition to the JDK.
If you use Java 10 and earlier, it shouldn't be an issue. You can switch your project's JDK in the Project Structure dialog (Ctrl+Alt+Shift+S).
For more information on how to create and set up a new JavaFX project in IntelliJ IDEA you can follow this guide.