#Javafx, issues with FXMLLoader

5 messages · Page 1 of 1 (latest)

opal patio
#

I am trying to use a fxml file that I created in my program. In the start method I have the following lines to initilize a scene with a root node, java FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource("/me/johannesk/postea/core/test.fxml")); Scene scene = new Scene(fxmlLoader.load(), 320, 240); . I am gertting the following error, java Caused by: java.lang.IllegalStateException: Location is not set. ```` which is caused by the method call fxmlLoader.load(). I assume this is becuase the file location is incorrect. I have tried the URLs to fix the issues, none worked,
/test.fxml
test.fxml
/me/johannesk/postea/core/test.fxml

chilly jewelBOT
#

This post has been reserved for your question.

Hey @opal patio! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

opal patio
#

Fixed it

#

Issue was that intelli did NOT create seperate foloders ... wtf man