I will start a Java project to develop a desktop application.
What to use as presentation layer pattern (MVC, MVP,MVVM or….)?
…if it is possible, with some working small example… 🙂
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Actually, the ultimate post you’re looking for is
this answerthis answer from Karsten Lentzsch (of JGoodies fame) in theSwing Frameworks and Best PracticesSwing Frameworks and Best Practices thread.If you don’t know Karsten and JGoodies, then believe me, this guy really knows what he’s talking about. I warmly recommend to read carefully his answer and the material he posted as reference. More specifically, be sure to check his Desktop Patterns and Data Binding presentation. Surprisingly, I prefer the old version to the new one.
Let me quote his slide about MVC vs MVP:
And then from the Summary:
That is Separated Presentation.
But I can’t do a better job than Karsten at explaining this, I can at best paraphrase him. So just read him!
Also maybe have a look at Desktop Java demos for learning (more precisely Scott Violet’s answer).