Understanding swing: Swing architecture follows a so-called
Model-View-Controller (MVC) design, also known as separable model
architecture. A brief overview of this design and links to examples are
given in Using
Models, for a more detailed overview see A
Swing Architecture Overview
Some small examples of Swing and events (from CSci 1211, Spring
2004): FirstSwing.java,
SecondSwing.java
(includes simple Event Listeners).
Exercise on Swing and Listeners: you are given the
following three classes that implement a GUI: GUI.class, MyItemListener.class, and MyListSelectionListener.class.
Your task is to implement
a GUI that works (roughly) the same way as the given one. Don't worry
about testing the GUI at this poinrt (even though you still might want
to test methods that manipulate strings and such). Some links
that you may find helpful: