*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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?
 
jQuery in Action, 2nd edition
 
subject: MVC v MVVM where to store view data
 
Similar Threads
Sharing JTree access
Is this MVC ?
Relationship between Model, View and Controller
Is my MVC design under RMI reasonable?
How do I apply Model-View-Controller in Java Swing?