What is the Model/View/Controller paradigm?
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.