CSC212 Lab 15 2014

From dftwiki3
Revision as of 09:43, 27 November 2014 by Thiebaut (talk | contribs) (First Contact)
Jump to: navigation, search

--D. Thiebaut (talk) 09:43, 27 November 2014 (EST)


This lab introduces the Model-View-Controller (MVC) system for implementing Graphical User Interfaces (GUI). Please review the slides from the MVC lecture notes if necessary.


First Contact

50x50Network.png


  • Create a new project, or add new files to an existing project. You will need to import core.jar from the Processing 2 app into your project, and then add it to the build path.
  • You need to create 3 different classes, one for the controller, one for the viewer, and one for the model.
  • MVC1_controller.java
  • MVC1_viewer.java
  • MVC1_model.java
  • This tutorial contains the code for all three classes. Copy/paste the code into your three classes.


Run


  • The starting class is the viewer. It's the applet class.
  • Run it. Play with the applet to understand how it works.