"Location not set"


In the attached project, I'm attempting to load a second stage in response to a context menu selection (New Person). PhoneBookController.mnuNewPerson_Click throws the exception on line 220. Here's the link to the project: 2022_11_22_8Lsk7uPzfWjr2G5PqGR8q3



I'm not sure if this is the best way to achieve the result I want, but I've added several properties to the PhoneBookController and in the start method, create the URLs to the other fxml files. When I subsequently load them from the PB controller, I use the local URLs to create the stage. This gets around the "Location not set" problem. 

That said, looking int the 'target' folder, I see all of the fxml files. It seems to me that I should be able to refer to "../something.fxml" to find the fxml file from the 'controllers' folder. That doesn't seem to be the case.


Hi Skirkpatrick, I'd recommend you post this issue at https://stackoverflow.com to discuss it with Java/Java FX community. Since the issue is related to JavaFX development rather than IntelliJ IDEA functionality, we can't help you, unfortunately.

See the links below for more information about Location not set issue:




Please sign in to leave a comment.