".." is not valid in a string provided to getResource(...)
. Remember that you will typically be loading from inside a jar file. (There is not real concept of from where your relative path is being defined.) Provide the path in the form
getClass().getResource("/path/to/fxml/NewProject.fxml");
where the path you define is relative to your classpath.