Issue
I have problem importing import "javafx.util.Pair" into my program. after searching the net I've found this answer cannot resolve symbol javafx.application in IntelliJ Idea IDE and I've installed desired jar file but still I've problem to import. this is what I face to when open java jdk. I don't know the why the "jfxrt.jar" is different. note the black arrow on the folder icon
Solution
open the File | Project Structure dialog, there under Platform Settings select SDKs and then your JDK 1.8. On the right you then see all the jars that make up the classpath to your SDK. Make sure that your jfxrt.jar is in that list, if not, you can add it by clicking the '+' button at the bottom.
Answered By - P.J.Meisch
Answer Checked By - David Marino (JavaFixing Volunteer)