Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this MVC?

 
michael opto
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I see the posts about MVC, I want to ask a question. I modified my table model, and called the table model's update methods to update the table. I am sure this is the MVC in swing. But I am not sure if this is the MVC you guys talked about the GUI design. Please help me on this.
 
Ying Ren
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think most of time the MVC means the total GUI design not only the JTable. I create a view class, a controller class and the a set of data related class.
Ying Ren
scjd2
 
michael opto
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So if I meet an essay question about: does your GUI design use MVC pattern? I have to say no?
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi michael,
I doubt you'll get a question stated that way. The questions you will get will ask you how you implemented locking or why you chose RMI over serialized objects and such things. There are no wrong answers on the essay if you know what you did. You don't have to mention MVC if you are concerned, if a question that might involve that crops up. Just describe what you did and all will be well.
Hope this helps,
Michael Morris
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic