Difference between revisions of "CSC212 Lab 15 2014"

From dftwiki3
Jump to: navigation, search
(Created page with "--~~~~ ---- <bluebox> This lab introduces the Model-View-Controller (MVC) system for implementing Graphical User Interfaces (GUI). Please review the slides from the MVC lect...")
 
(First Contact)
Line 6: Line 6:
 
<br />
 
<br />
 
=First Contact=
 
=First Contact=
[[File:50x50Network.png| right| 100px]]
+
[[File:50x50Network.png| right| 200px]]
 
<br />
 
<br />
 
* 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'''.
 
* 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'''.

Revision as of 09:43, 27 November 2014

--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.