Download presentation
Presentation is loading. Please wait.
Published byCassandra Turner Modified over 9 years ago
1
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
2
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
3
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 3 1. Entwurf mit Papier und Bleistift / Post Ist
4
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 4 2. Eventuell Powerpoint Mockup File Editx _ Push Me No of pushes: 0
5
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 5 2. Eventuell Powerpoint Mockup File Editx _ Push Me No of pushes: 1
6
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 6 2. Eventuell Powerpoint Mockup File Editx _ Push Me No of pushes: 2
7
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 7 2. Eventuell Powerpoint Mockup File Editx _ Push Me No of pushes: 3
8
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 8 3. GUI bauen (z.B. mit GUI Builder) m Swing Tutorial: http://java.sun.com/docs/books/tutorial/uiswing/components/index.html http://java.sun.com/docs/books/tutorial/uiswing/components/index.html m Visual Editor for Eclipse Tutorial: http://www.cs.siu.edu/~wainer/484S05/visEdit/eclipseVisEdiTutorial.html http://www.cs.siu.edu/~wainer/484S05/visEdit/eclipseVisEdiTutorial.html
9
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 9 Swing GUI: Aufbau
10
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 10 Swing GUI: Komponenten anordnen http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html
11
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
12
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 12 4. Logik anknoten public class GrillAbrechnung { private static GrillAbrechnung theInstance = null; public static GrillAbrechnung get() { if (theInstance == null) { theInstance = new GrillAbrechnung(); } return theInstance; } }
13
Programmiermethodik SS2007 © 2007 Albert Zündorf, University of Kassel 13 4. Logik anknoten public class LoadAction extends ActionListener { public void actionPerformed(ActionEvent e) { Buchung b = new Buchung(); GrillAbrechnung.get().addToBuchungen(b) } }
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.