Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How does MVC scale?  RSS feed

Matt Cam
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I'm embarking on my first real Swing app. I've been using Java for Servlet/JSP type applications, I'm not hugely experienced, but I have a decent grasp of how Java works.
Right, I'm having trouble with understanding how a Swing application should be put together. I understand how MVC (or Model/Delegate) works for trival little application with a single class for a model and a few basic Swing components with inner classes for the View/Controller. My big problem is that I can't see how that Scales to allow you to build anything real world. I just can't seem to find a clear explaination of how a decent sized app would be designed.
For instance, if an application is made up serveral modules (there's probably a more professional word to use, but I hope you know what I mean) that are quite complex in themselves, does each of these modules have a "model", how do all the models interact? How do they know about each other? Are all the models pulled together in some kind of "model tier" or is it nested - i.e. a super model that all the View components talk to that manages all the other little models. Then how do the model parts of the GUI, such as the model backing a JTable, fit in to this large scale MVC architecture? Wont those GUI models be in the View? I'm missing something here...
I feel as if I am on the verge of making a mental breakthrough I just need something to help me see the big picture in terms of how it all fits together in a Swing app. Can anyone suggest a reference or give me a quick run down.
Thanks all in advance
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!