A basic, middle of the road solution to A2. Also included is the sample code from L13 which implements multiple views.
MVC diagrams + UML for x2 systems and variants
Example similar to as discussed and described in Ch.4 of the textbook. A notable difference is that the view makes use of an abstract model widget (JTable). The controller is explicit represented (encapsulated as a class).
Example as discussed and described in Ch.4 of the textbook.
Example similar to as discussed and described in Ch.4 of the textbook. A notable difference is the explicit representation of a controller (encapsulated as a class).
The version from Ch3 of the textbook.
Example similar to the LineDraw example as discussed and described in Ch.3 of the textbook. A notable difference is the explicit representation of a controller (encapsulated as a class).
Code example from lecture demonstrating MVC design pattern. These are the fleshed-out examples from Ch3 of the textbook. The file is an archived eclipse project. This version has a different encapsulation from the textbook (essentially the same, though).
Slides presented in class on Oct 21, 2010. Examples referred to in the slides can be found in the exampleSetWidgets package.
A package containing various code examples using widgets (some of the examples do not make good use of the MVC design pattern and instead are intended to demonstrate the use of particular Swing widgets).
A copy of Labtest#1, provided as an exercise. The solution is provided in one of the packages.
Two possible solutions for A1 (one using subclassing, the other using reflection). The file is an archived eclipse project. This allows you to import the project using Import->Existing Projects Into Workspace, and then select this file as the archive file (the second radio button, under "select root directory").
Not all pages are provided.