JavaFX\'s MVC Model by using FXML sounds awesome and all but I\'m having trouble find out how to organize my project packages.
Every single tutorial i find about JavaFX
IMHO, you shouldn't create package's depending on your views.
My approach towards such applications
controllers
of these views
A directory for FXML files called view
in the resources
src/main
├──java
├── controllers
├──Screen1controller.java
├──Screen2controller.java
├── service
├──Service1.java
├── dao(persist)
├── SaveProducts.java
├──resources
├──view
├──screen1.fxml
├──screen2.fxml
├──css
├──style.css
├──images
├──img1.jpg
├──img2.jpg
The above implementation can be considered for a Maven
project.
For a simple project, you can view a structure here. It is a maven project!