Java SWING and Model View Controller (MVC)

Slides:



Advertisements
Similar presentations
17 Copyright © 2005, Oracle. All rights reserved. Deploying Applications by Using Java Web Start.
Advertisements

1 G54PRG Programming Lecture 1 Amadeo Ascó Adam Moore 29 Organising Code: Packages & Archives.
Setting up Eclipse PSC 120 Jeff Schank. Outline Find our user account Create “PSC120” Folder Create a “workspace” folder Link it to Eclipse Install Mason.
All About Android Introduction to Android 1. Creating a New App “These aren’t the droids we’re looking for.” Obi-wan Kenobi 1. Bring up Eclipse. 2. Click.
OOP Design Patterns Chapters Design Patterns The main idea behind design patterns is to extract the high level interactions between objects and.
Week 8, Class 3: Model-View-Controller Model-View-Controller Why? What? How? Example: Barnyard Simon for the Web Question: Where should we use the command.
Java Integrated Development Environments: ECLIPSE Part1 Installation.
Graphical User Interface (GUI) Nelson Padua-Perez Bill Pugh Department of Computer Science University of Maryland, College Park.
Graphical User Interface (GUI) Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of Creating Eclipse plug-ins.
Senior Design Project (COE 485) Group 2 Week 9. OUTLINE Tasks performed Tasks performed Snap shots Snap shots Tasks for next weeks Tasks for next weeks.
Slide 1 ICS 012 Visual Programming I Ahmed Esmat Second.
Object-Oriented Analysis and Design
Steps to Display a Text file in an Applet Abhishek Mehta.
Hello Vaadin! CS 3130 Summer 2015.
Stanford hci group / cs376 research topics in human-computer interaction UI Software Tools Scott Klemmer 27 October 2005.
Acting & Seeing Making your Swing code actually do stuff...
Android Programming Beomjoo Seo Sep., 12 CS5248 Fall 2012.
DESIGN PATTENS - OBSERVER PATTERN
Introduction to Java Swing “We are the sultans of swing” – Mark Knopfler.
Behavioral Patterns  Behavioral patterns are patterns whose purpose is to facilitate the work of algorithmic calculations and communication between classes.
MVC pattern and implementation in java
© 2005 by IBM; made available under the EPL v1.0 | March 1, 2005 Tim deBoer Gorkem Ercan Extend WTP Server Tools for your.
JUnit in Action SECOND EDITION PETAR TAHCHIEV FELIPE LEME VINCENT MASSOL GARY GREGORY ©2011 by Manning Publications Co. All rights reserved. Slides Prepared.
AN OVERVIEW OF SERVLET TECHNOLOGY SERVER SETUP AND CONFIGURATION WEB APPLICATION STRUCTURE BASIC SERVLET EXAMPLE Java Servlets - Compiled By Nitin Pai.
Virtual techdays INDIA │ Nov 2010 Developing Office Biz Application using WPF on Windows 7 Sarang Datye │ Sr. Consultant, Microsoft Sridhar Poduri.
DUE Hello World on the Android Platform.
GUIs for Applets Introduction Applets and Swing/JFC Alternatives to Swing Look-and-Feel issues Example applet graphical user interfaces.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Swing and MVCS CompSci 230 Software Construction.
GEMVC. The Setup Folders Views Value Objects (VOs) Custom Events Service CFCs Controller Model Application Main MXML.
MVC Design Pattern Web Developer at Crimshield, Inc Application Developer at IBM Present - Delta Developer at Tides.
Welcome To Eclipse. Basic Concepts Workspace – directory where your projects are stored –Projects grouping of related works –Resources generic term to.
Swing MVC Application Layering A Layer is a collection of components that Perform similar tasks. Perform similar tasks. Isolate implementation details.
CS Lecture 00 Swing overview and introduction Lynda Thomas
1 CSC 222: Object-Oriented Programming Spring 2012 netBeans & GUIBuilder  netBeans IDE create/edit/run a project  GUIBuilder JFrame, JButton, JTextField,
SWING 101. IF YOU GET LOST - IMPORTANT LINKS  Swing articles:
Development with Eclipse Software Engineering Prof. Werner Krandick.
PRESENTATION 2 Sri Raguraman CIS 895 Kansas State University.
Swing - 2 Session 13. Swing - 2 / 2 of 38 Objectives (1) Discuss trees and tables Discuss progress bars Discuss MVC architecture Describe menus.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
(1) Introduction to Java GUIs Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University of Hawaii Honolulu.
CSC Multiprocessor Programming, Spring, 2011 Chapter 9 – GUI Applications Dr. Dale E. Parson, week 11.
1 CSE 331 Model/View Separation and Observer Pattern slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia.
CS 210 Iterator Pattern October 31 st, Example to motivate discussion We have two lists (of menu items) one implemented using ArrayList and another.
Assignment 1 tutorial. Assignment 1 Programming part: – Socket programming: a chat room application – Individual assignment – Deadline 20 th Oct 2015.
CIS 644 Tues. Nov. 23, 1999 W14A … Threads, Notification Chaps. 4, 5.
TODAY Android Studio Installation Getting started Creating your 1 st App Beginning to understanding Intents.
L10: Model-View-Controller General application structure. User Interface: Role, Requirements, Problems Design patterns: Model – View – Controller, Observer/Observable.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Chapter 10 - Writing Graphical User Interfaces1 Chapter 10 Writing Graphical User Interfaces.
Developing GUIs With the Eclipse Visual Editor, Swing/AWT Edition David Gallardo.
Eclipse, Java basics, and Sox Iris Jianghong Shi.
Java IDE Dwight Deugo Nesa Matic
Menus. Menus are a common user interface component in many types of applications. The options menu is the primary collection of menu items for an activity.
CSC 222: Object-Oriented Programming
Antenna Gain Plugin (AGP)
Review: Java GUI Programming
Lecture 28 Concurrent, Responsive GUIs
CS102 – Bilkent University
Android App Developing with communication included
Building Graphical User Interface with Swing a short introduction
Model-View-Controller (MVC) Pattern
Java External Libraries & Case Study
Access 2013 Introduction
CPSC 533C Project Updates March 19, 2003 Ming Huan Lee.
Could Jiro™ Extend the Jini™ Pattern Lanuguage?
CMPE 135: Object-Oriented Analysis and Design March 14 Class Meeting
Activity 1 - Chapter 5 -.
Presentation transcript:

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

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

MVC – Model View Controller

That Implements an Interface Publish Subscribe Object That Implements an Interface Event Listeners Lists of Event Listeners

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

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.