• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About MVC Concept on Java, How should i can apply the concept.Expect some example.

 
Mohammad Ashrafuddin Ferdousi
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi java xperts,

Think you are doing well. But i am not at all coz of a little bit MVC problem . Let me explain.


I am staring and doing java very recently. I am a real fan of OOP and MVC. Now, I am in a trouble. Can you please discuss and ans this question?

I found out that, Everything is an object in java. But i feel trouble with inner class cocept when i gonna work with EventListener. When i am doing EeventListener i found out that, every example follow the inner class concept to follow the EventListerner. I actually can not like this concept because, When i handle the action with inner class, that will be a mix-up of MVC. So, if i wanna follow the MVC what should i do on this matter? Can you help me by an example please? I can not move foreword without solving this problem.


Can you please help with some example or any kind of documentation? If there is any book to follow MVC pattern on Java please mail me at it.codeperl@gmail.com. I will be very oblige to you, friend.


Best Regards
codeperl
 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could do somthing like this:
 
Mohammad Ashrafuddin Ferdousi
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What a coOl reply, friend!

"Any fool can write code that a computer can understand.
Good programmers write code that humans can understand." --- Martin Fowler

I really like the words.

ok, you give a nice idea and i am gonna take a try as you say.

Anyway, which editor you use for java coding? Have a nice day, friend.


Thanks
 
Mohammad Ashrafuddin Ferdousi
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nice thing i learn today from you friend.

Can anyone suggest me any book of Java, J2me and j2ee from where I can learn professional quality MVC Pattern?
If So, Please inform me friend.

Regards
 
fred rosenberger
lowercase baba
Bartender
Posts: 12149
31
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the mvc pattern is just that - a pattern. it can be used in ANY language, not just java. Granted, some languages may make it easier or harder to implement.

I'd recommend you get a design pattern book if you want to learn MVC, not a Java book. Check out the bunkhouse here for various recommendations.
 
Mohammad Ashrafuddin Ferdousi
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
fred rosenberger wrote:the mvc pattern is just that - a pattern. it can be used in ANY language, not just java. Granted, some languages may make it easier or harder to implement.

I'd recommend you get a design pattern book if you want to learn MVC, not a Java book. Check out the bunkhouse here for various recommendations.



Thanks for your post. Ok, I am gonna do so.

Regards
codeperl
 
Campbell Ritchie
Sheriff
Pie
Posts: 49466
64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And please don't write coOl or coz or gonna.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic