
108
Chapter 8: Developing GUIs m
and the application program interacts with the view class through supplied methods. However,
for more complex components, such as lists and tables, we need to explicitly interact with the
model classes. One consequence of this separation of model and view classes is that it is
possible for certain components to share models.
With the AWT, each component Java class had a corresponding device-dependent inter-
face or peer that maps the classes execution code onto the underlying windowing system. So
an AWT button includes Windows and Motif peer interfaces, for example. For this reason, AWT ...