|
Model-View-Controller (MVC) is a well known object oriented design for GUI components. The architecture of swing components is based on MVC design. When a GUI component is developed using MVC architecture, it is divided into three parts:- Model-An object that defines the component's state
- View-The visual screen representation of component.
- Controller-An object that controls a component in such a way that it responds to user input.
- The model part of an MVC-based component provides information that can be used to specify the component's value, provided the component has any value properties, e.g. the min and max values of a slider control are stored in the component's model part.
- The Controller part modifies information maintained by the component's model part in response to input from the user.
- The View part manages the way in which the object is drawn on the screen.
|