Design Guideline—Model View Controller Architecture

Model View Controller is a composite design pattern often used to partition user interface components into three related but separate concerns.

MVC is a combination of several other design patterns. In this section, we will look at MVC in some detail and see how Swing components implement a simplified version of MVC.

Simple MVC with Pull Semantics

MVC has been around for a while. It was originally conceived in the world of Smalltalk. Its motivation is to separate the following three concerns regarding a user interface:

  • The underlying blob of information that is seen and possibly modified—the Model.

  • The widget, graphical or textual, used to depict the model—the View.

  • The glue to connect the ...

Get Borland® JBuilder™ Developer’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.