wood burning stoves 2.0*
The moose likes OO, Patterns, UML and Refactoring and the fly likes MVC and Class Diagrams 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 and Class Diagrams" Watch "MVC and Class Diagrams" New topic
Author

MVC and Class Diagrams

Paul Mrozik
Ranch Hand

Joined: Feb 10, 2013
Posts: 117

While working on my own project, I noticed I've sort of hit a wall of complexity. A lot of classes, a lot of functionality, and so far it looks a bit messy. I will continue with the messy coding just to keep things moving forward, but in the meantime I'd like to design the whole program using UML diagrams from scratch. It's relatively simple, so taking bits and pieces out to put it back together into something more sensible shouldn't be a problem.

So my first question is regarding the MVC model. I watched this tutorial on YouTube and it shed some light as to what MVC is all about and frankly, it sounds great. What I'm a bit confused about is, do I break up every GUI window into a MVC model?

So if I have a Add Student window I'd need the following classes:

StudentModel - stores student data and has different methods
StudentView - just the GUI
StudentController - links the above to make the program functional

and for the LessonReview window I should have:

LessonReviewModel
LessonReviewView
LessonReviewController

and so on?



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MVC and Class Diagrams
 
Similar Threads
MVC questions
Applying MVC to a "windows explorer" like program
Documenting JavaBeans
MVC for click and drag interface with multiple models
Fake MVC in Swing - Is real MVC possible?