CSC 8310: Example Applet
with GUI David Matuszek, Villanova University |
This applet uses a simple GUI, and exemplifies the Model-View-Controller design pattern. That is, it divides the problem in three parts and assigns behaviors to each, as follows:
view.model = model; view.controller = this;
This clean separation should make it a lot easier for you to adapt my code to your needs.
Java source