how to locate fxml from another package?
You need to use
getClass().getClassLoader().getResource("/jfxtest2/Screen.fxml")
Try
Parent root = FXMLLoader.load(getClass().getResource("/jfxtest2/Screen.fxml"));
You need to use
getClass().getClassLoader().getResource("/jfxtest2/Screen.fxml")
Try
Parent root = FXMLLoader.load(getClass().getResource("/jfxtest2/Screen.fxml"));