Issue
I upgraded from Java 10 to Java 12 and JavaFX 12.
Now I can't compile my project anymore because javafx.embed.swingSwingFXUtils
is no longer recognized.
Intellij can't find any library for the class. Seems like javafx.embed
doesn't exist anymore.
I looked to see if the package was dropped but I couldn't find any information regarding it.
Solution
The module javafx.swing needs to be included in the gradle file:
javafx {
modules = [ 'javafx.controls', 'javafx.graphics', 'javafx.swing', 'javafx.base' ]
}
Answered By - Guillaume F.
Answer Checked By - Robin (JavaFixing Admin)