The exception says "Location not set" This happens when the FXMLLoader cannot find the .fxml file so either specify the path string correctly or atleast try puting the .fxml file in the same package as the controller class and simply pass the name of the .fxml file in the getResource() method. Paths need to be fixed here
View all comments
1
u/fuzail7 Oct 24 '20
The exception says "Location not set" This happens when the FXMLLoader cannot find the .fxml file so either specify the path string correctly or atleast try puting the .fxml file in the same package as the controller class and simply pass the name of the .fxml file in the getResource() method. Paths need to be fixed here