Move fxml location to resources
This commit is contained in:
parent
61e34a3cdf
commit
4edeb162b8
@ -24,7 +24,7 @@ public class Main extends Application {
|
||||
public void start(Stage window) throws IOException {
|
||||
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);
|
||||
window.setScene(scene);
|
||||
window.show();
|
||||
|
Loading…
Reference in New Issue
Block a user