I have been trying to get Maven set up with JavaFX. Even though I was unexperienced with Maven and JavaFX, I didn\'t expect it to be so much of a challenge. My Java knowledg
I had the same issue with Intelij and Gradle.
Steps to fix:
1.Move file
sample.fxml
to path
\src\main\resources\fxml
Parent root = FXMLLoader.load(getClass().getResource("/fxml/sample.fxml"));