permaculture playing cards*
The moose likes OO, Patterns, UML and Refactoring and the fly likes MVC v MVVM where to store view data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "MVC v MVVM where to store view data" Watch "MVC v MVVM where to store view data" New topic
Author

MVC v MVVM where to store view data

Timmy Ryan
Ranch Hand

Joined: Dec 09, 2007
Posts: 63

In a swing application where there are multiple views some of which can affect the layout of other views what is the best way to handle the flow of information?
To store the view data in a corresponding model such as in MVVM, where the controller updates the model and the model then through the observer pattern informs the observing views to update themselves. This is the presentaion pattern I believe.
I understand to have one view update another is not a good idea.
Are there any other ways that are practical?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: MVC v MVVM where to store view data