Move fxml location to resources

This commit is contained in:
Oystein Kristoffer Tveit 2021-02-16 11:40:12 +01:00
parent 61e34a3cdf
commit 4edeb162b8
2 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public class Main extends Application {
public void start(Stage window) throws IOException { public void start(Stage window) throws IOException {
window.setTitle("Hello world"); window.setTitle("Hello world");
Parent document = FXMLLoader.load(getClass().getResource("./MainView.fxml")); Parent document = FXMLLoader.load(getClass().getResource("/fxml/Main.fxml"));
Scene scene = new Scene(document); Scene scene = new Scene(document);
window.setScene(scene); window.setScene(scene);
window.show(); window.show();