Download
seng 271 week 4 n.
Skip this Video
Loading SlideShow in 5 Seconds..
SEng 271 Week 4 PowerPoint Presentation
Download Presentation
SEng 271 Week 4

SEng 271 Week 4

74 Vues Download Presentation
Télécharger la présentation

SEng 271 Week 4

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. SEng 271 Week 4 Java SWING and Model View Controller (MVC)

  2. Swing Basics • Two design patterns you need to know • MVC • Publish Subscribe

  3. MVC – Model View Controller Controller View Model

  4. Publish Subscribe Object That Implements an Interface • Event Listeners • Lists of Event Listeners

  5. Getting the Code • Download the JAR • Start a new Java Project in Eclipse • Import the JAR by using the “Archive” option in the src folder context menu

  6. Quick Run through of the app • What it does • The three components • The tasks • Implement a new View that provides a visual representation of the result • Implement a new Controller that multiplies instead of adding • Implement a new Controller and a new view that support division (including floating point). Also update the existing views and model to support the new operation.