sialcasa / mvvmFX

an Application Framework for implementing the MVVM Pattern with JavaFX
Apache License 2.0
489 stars 105 forks source link

Loading FXML from resources #608

Closed clogs1959 closed 4 years ago

clogs1959 commented 4 years ago

As per the documentation, I am using convention over configuration and placed the FXML I want to load underneath resources, using the correct folder structure. It does not want to load, I am getting an IO Exception. However, if I do the following, it loads correctly, which is the exact same path:

@Component @FxmlPath("/com/myfxml/mvvmfx/view/HelloView.fxml") public class HelloView implements FxmlView { ... (omitted for brevity) }

Why is that?

clogs1959 commented 4 years ago

Forget it, I tried again, it works now, no idea what happened.