Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3695078
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:34:26+00:00 2026-05-19T04:34:26+00:00

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

  • 0

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

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:34:27+00:00Added an answer on May 19, 2026 at 4:34 am

    I’ve used MVC for a long time and find it to be a fantastic mechanism for approaching software design. My advice while you’re learning it is to make everything a controller at first. In other words, create a class that has members that contain state (model) and also members that display and manipulate that state (views). Make the functions of your class take input from the views, modify the data, and then update the views (controller).

    This obviously doesn’t embody the separation that the design pattern intends, but it will help you learn quickly to identify what is a clear view component and what is a clear model component. Then take some time to separate out into separate files/objects independent model objects (which is easiest) and later independent view objects.

    After you do this for a project or two, the separation will begin to be more natural and obvious and as you start new projects you’ll know before you start writing code (design phase) what sorts of things go where.

    From personal experience I think you’re more apt to overthink things and do too much work if you try to categorize everything without some real development experience first. You’ll find if you spend some time writing a project in a natural way and then breaking things down as you go or afterwords that it will make more sense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying to find an example of this, it's possible that I am not going
Trying to find a way to remove blank pages from a document I wrote
Trying to find an example that has css rollover using sprites & sliding door
Trying to find a way to send a POST HTTPS request from Python to
Trying to find div element with id=result in returned data from .ajax() using .find()
Im trying to find a regular expression that matches this kind of URL: http://sub.domain.com/selector/F/13/K/100546/sampletext/654654/K/sampletext_sampletext.html
Trying to find some information on this but am unable to get any results
Trying to find a way to automate the API from javascript comments.
I am trying find lat & long from user given address, for that i
I am trying find out how to redirect all traffic on a website from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.