Need help understanding the MVC design pattern

Posted by Doron Sinai on Stack Overflow See other posts from Stack Overflow or by Doron Sinai
Published on 2011-01-16T07:30:30Z Indexed on 2011/01/16 7:53 UTC
Read the original article Hit count: 247

Filed under:
|
|

Hi,

I am trying to find a ood example of MVC design pattern in java.

This is what i understood from reading about it, please correct me if I am wrong:

I have the Model part which is the logic behind the program, let's say if we have a phonebook, so adding and removing contact from the Array will be the model.

The Gui is the view and it contains buttons that upon clicking them, the model is changing.

What I am trying to undersand what is the controller part, is it the ActionListeners? how to you seperate those modules in practice.

thank you

© Stack Overflow or respective owner

Related posts about java

Related posts about mvc