Model : The core of the application. This maintains the state and data that the application represents. When significant changes occur in the model, it updates all of its views
updateObservers()within each set (transformer) method.
Controller : The user interface presented to the user to manipulate the application.
View : The user interface which displays information about the model to the user. Any object that needs information about the model needs to be a registered view with the model.
this) as an observer by calling the model's
In Java, everything is "glued" together by a system driver class. This class creates the main GUI window, and instantiates the Model, Controller, and View objects. For example, see Heart.java.
File Heart.jar runs the above example.
Cristobal Baray's intro on the model-view-controller (MVC) design pattern.