aspose file tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Reply 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?
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: MVC v MVVM where to store view data
 
Similar Threads
Is my MVC design under RMI reasonable?
How do I apply Model-View-Controller in Java Swing?
Is this MVC ?
Relationship between Model, View and Controller
Sharing JTree access