Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the Model/View/Controller paradigm?

controller model Paradigm view
0
Posted

What is the Model/View/Controller paradigm?

0
10

Ans : Model/View/Controller is a design pattern or framework originally developed by Prof. Trygve Reenskaug at Xerox PARC in 1978/9. MVC was developed to allow Smalltalk to conveniently support GUIs. Model/View/Controller is a design pattern used extensively in Swing. Basically, the “model” contains your data, the “view” is the graphical representation, and the “controller” is responsible for the interaction between the other two. As an example, think of visually editing the Tree widget that represents a directory. The display is the view. Selecting a file, and dragging it to the trash can will delete the file. In order for the delete to happen, the controller must tell the model what just happened in the view. In practice, inter-communication between the view and the controller is complex, so the two are bundled together in one category in Swing. The model (data) is separate though. There’s a reasonable white paper on MVC in Swing at http://java.sun.

0

• A. Model/View/Controller is a design pattern used extensively in JDK 1.2. Basically, the “model” contains your data, the “view” is the graphical representation, and the “controller” is responsible for telling the “model” what happens in the “view”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123