Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 1 GUI Konstruktion: 1. Entwurf mit Papier und Bleistift / Post Ist 2. Eventuell.

Slides:



Advertisements
Similar presentations
Fachgebiet Software Engineering Übersicht © Albert Zündorf, Kassel University Integrationskonzepte: nebeneinander PC1 Vorlesungs GUI dekanatsserver.
Advertisements

Programmiermethodik SS2006 © 2005 Albert Zündorf, University of Kassel 1 Synchrone Methodenausführung.
Concurrent Programming Programmiermethodik SS2006 © 2005 Albert Zündorf, University of Kassel 1.
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 1 GUI Konstruktion: 1. Entwurf mit Papier und Bleistift / Post Ist 2. Eventuell.
Java Graphical User Interface (GUI) using Visual Editor in eclipse CSI 1390 – Java Programming Instructor: Saeid Nourian University.
Introduction to Java Classes, events, GUI’s. Understand: How to use TextPad How to define a class or object How to create a GUI interface How event-driven.
GUI Tutorial Day 3. Custom Dialog Create, display, hide, retrieve information.
Lecture 17 Abstract classes Interfaces The Comparable interface Event listeners All in chapter 10: please read it.
© L.Lúcio, An example GUI in Java n Two graphic libraries in Java u AWT u Swing n Swing is more recent than AWT: u Built on top of AWT classes;
Unit 12 Object-oriented programming: Event-driven programming for GUI Jin Sa.
Creating a GUI with Swing. Introduction Very useful link: Swing – is a part of JFC (Java Foundation.
Graphical User Interfaces
Lecture 241 CS110 Lecture 25 Tuesday, May 4, 2004 Announcements –final exam Thursday, May 20, 8:00 AM McCormack, Floor 01, Room 0608 (easier than last.
16-Aug-15 Air Force Institute of Technology Electrical and Computer Engineering Object-Oriented Programming in Java Topic : Interfaces, Copying/Cloning,
Page 1 Simple PowerPoint Menus Section 1 Section 3 Section 2 Tutorial.
1 Event Driven Programming wirh Graphical User Interfaces (GUIs) A Crash Course © Rick Mercer.
DUE Hello World on the Android Platform.
עקרונות תכנות מונחה עצמים תרגול 4 - GUI. Outline  Introduction to GUI  Swing  Basic components  Event handling.
GUI programming Graphical user interface-based programming.
LAB 1CSIS04021 Briefing on Assignment One & RMI Programming February 13, 2007.
Introducing the Eclipse Visual Editor David Gallardo.
Java Event Handling CSIS 3701: Advanced Object Oriented Programming.
עקרונות תכנות מונחה עצמים תרגול 6 - GUI. סיכום ביניים GUI:  Swing  Basic components  Event handling  Containers  Layouts.
CIS Intro to JAVA Lecture Notes Set June-05 GUI Programming – Assignment 5 Notes.
Swing GUI Components You can create graphics components to place on your applet using classes available in the Swing package ( javax.swing ) Class names.
Chapter 12 1 TOPIC 13B l Buttons and Action Listeners Window Interfaces Using Swing Objects.
 2003 Joel C. Adams. All Rights Reserved. Calvin CollegeDept of Computer Science(1/15) MVC and Swing Joel Adams and Jeremy Frens Calvin College.
1 CSC 222: Object-Oriented Programming Spring 2012 netBeans & GUIBuilder  netBeans IDE create/edit/run a project  GUIBuilder JFrame, JButton, JTextField,
CSE1030-HR GUI The Big Picture Building the View Building the Controller Separating the Concerns Going Further.
GUI Programming using NetBeans. RHS – SOC 2 GUI construction We have previously talked about elements in a (simple) GUI –Frames, Panes and Dialogs –Text.
JDojo and Its Usage Te-Hsin Shih 04/30/2013. Dojo Dojo Toolkit is an open source JavaScript library designed to ease the rapid development of cross-platform,
Java GUI. Graphical User Interface (GUI) a list a button a text field a label combo box checkbox.
Java GUI. Overview The ”idea” The ”idea” The Components The Components Listeners Listeners The Program The Program Interface Eventlistener Interface Eventlistener.
Graphics in Java Dr. Andrew Wallace PhD BEng(hons) EurIng
1 GUI programming Graphical user interface-based programming Chapter G1 (pages )
1 Applications & Applets Standalone applications & Java applets Peter Mozelius DSV/UCSC.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Tutorial 2 – Welcome Application Introduction to Graphical.
Graphical User Interfaces A Graphical User Interface (GUI) in Java is created with at least three kinds of objects: –components, events, and listeners.
Sadegh Aliakbary Sharif University of Technology Fall 2011.
Mouse Events GUI. Types of Events  Below, are some of the many kinds of events, swing components generate. Act causing EventListener Type User clicks.
Creating User Interfaces XML, MathML, ChomeVox. XML eXtended Markup Language Tags and text Tags are singletons and paired. Tags have types and, generally,
Swing GUI Components So far, we have written GUI applications which can ‘ draw ’. These applications are simple, yet typical of all Java GUI applications.
Object Oriented Programming in Java Habib Rostami Lecture 10.
Developing GUIs With the Eclipse Visual Editor, Swing/AWT Edition David Gallardo.
MIT AITI 2004 Swing Event Model Lecture 17. The Java Event Model In the last lecture, we learned how to construct a GUI to present information to the.
5-1 GUIs and Events Rick Mercer. 5-2 Event-Driven Programming with Graphical user Interfaces  Most applications have graphical user interfaces to respond.
Java Swing and Events Chris North cs3724: HCI. Presentations nadine edwards, steve terhar Vote: UI Hall of Fame/Shame?
1 A Quick Java Swing Tutorial. 2 Introduction Swing – A set of GUI classes –Part of the Java's standard library –Much better than the previous library:
GUI Programming in Java Hao Jiang Boston College April, 2009.
©The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter Chapter 7 ( Book Chapter 14) GUI and Event-Driven Programming.
A Quick Java Swing Tutorial
Observer Pattern Context:
Welcome to java einfach objektorientiert verteilt interpretierend
This file is intended to be used with the blog post “Drawing and Animating Gears in PowerPoint” at
Review: Java GUI Programming
GUI Konstruktion: Entwurf mit Papier und Bleistift / Post Ist
A Quick Java Swing Tutorial
Threads and processes Programmiermethodik SS © 2005 Albert Zündorf, University of Kassel.
MVC Paradigm The MVC paradigm breaks applications or interfaces into three parts: the model, the view, and the controller. A --> 25 % B --> 60 % C -->
PRG 421Competitive Success/tutorialrank.com
'. \s\s I. '.. '... · \ \ \,, I.
Event-driven programming for GUI
עקרנות תכנות מונחה עצמים
Inner Classes 11/14/ Dec-04 inner_classes.ppt.
Introduction to Event Handling
' '· \ ·' ,,,,
A Quick Java Swing Tutorial
Advanced Programming in Java
Constructors, GUI’s(Using Swing) and ActionListner
Real World Scenario Sometimes it's appropriate to have exactly one instance of a class: window manager print spooler Filesystems press Ctrl-F to display.
Presentation transcript:

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 1 GUI Konstruktion: 1. Entwurf mit Papier und Bleistift / Post Ist 2. Eventuell Powerpoint Mockup 3. GUI bauen (z.B. mit GUI Builder) 4. Logik anknoten

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 2 1. Entwurf mit Papier und Bleistift / Post Ist m Szenarios an der GUI durchspielen m mit Benutzern

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 3 1. Entwurf mit Papier und Bleistift / Post Ist

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 4 2. Eventuell Powerpoint Mockup File Editx _ Push Me No of pushes: 0

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 5 2. Eventuell Powerpoint Mockup File Editx _ Push Me No of pushes: 1

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 6 2. Eventuell Powerpoint Mockup File Editx _ Push Me No of pushes: 2

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 7 2. Eventuell Powerpoint Mockup File Editx _ Push Me No of pushes: 3

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 8 3. GUI bauen (z.B. mit GUI Builder) m Swing Tutorial: m Visual Editor for Eclipse Tutorial:

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 9 Swing GUI: Aufbau

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 10 Swing GUI: Komponenten anordnen

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 11 4 Logik anknoten m Buttons: Action Listeners m Content: Models / Updater / Listeners m Zugriff von GUI Element auf Logik: l Logikelement bei GUI Elements eintragen l Singleton

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel Logik anknoten public class GrillAbrechnung { private static GrillAbrechnung theInstance = null; public static GrillAbrechnung get() { if (theInstance == null) { theInstance = new GrillAbrechnung(); } return theInstance; } }

Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel Logik anknoten public class LoadAction extends ActionListener { public void actionPerformed(ActionEvent e) { Buchung b = new Buchung(); GrillAbrechnung.get().addToBuchungen(b) } }