INVICTUM
JCHJava Community | Help. Code. Learn.
•Created by INVICTUM on 10/23/2024 in #java-help
Architectural Design suggestions on GUI Applications
this might be more of a subjective question in mind knowing there are no one right answer to this question. it is more of a request of suggestions on what you think would be the best practices for creating a GUI application.
i am creating a JavaFX application and was thinking of using the MVC pattern but confused by the lots of different MVC implementations made by other people and i felt that it is the wrong design that the business logic has to be placed on the same area as the persistence layer inside the model. i am also confused that lots of implementation would create the instance of model inside their controller class which means you cannot use the same model instance for multiple controller / different screen. for example the SettingsModel would need to be used on multiple Controller classes to set up the same theme on the view, volume, etc.
any suggestions on how you usually structure your code in a way that just makes sense from an architectural design perspective.
6 replies