FAQ Session – Assignment 1

Slides:



Advertisements
Ähnliche Präsentationen
Finding the Pattern You Need: The Design Pattern Intent Ontology
Advertisements

Fakultät für informatik informatik 12 technische universität dortmund Specifications Peter Marwedel TU Dortmund, Informatik 12 Graphics: © Alexandra Nolte,
Peter Marwedel TU Dortmund, Informatik 12
Prof. Dr.-Ing. habil. B. Steinbach - Informatik / Softwaretechnologie und Programmierungstechnik - Institut für Informatik Verteilte Software - Java -
Prof. Dr.-Ing. habil. B. Steinbach - Informatik / Softwaretechnologie und Programmierungstechnik - Institut für Informatik F Verteilte Software - Java.
Verteilte Software - Java - Prozedurale Programmierung 1
Prof. Dr.-Ing. habil. B. Steinbach - Informatik / Softwaretechnologie und Programmierungstechnik - Institut für Informatik Verteilte Software - Java -
Choose 5-7 adjectives to create the following comparative/superlativ e slideshow. You may choose words not on our list but you MUST make sure to use them.
Lehrstuhl Informatik III: Datenbanksysteme Andreas Scholz 1 Programming Database Web Applications Web Service Technologies Andreas Scholz.
AUFGABE 1: Ein Wagen (dargestellt durch ein Rechteck) soll sich von links nach rechts bewegen. Tipp: Timer benutzen AUFGABE 2: Zusätzlich zu Aufgabe.
Praktikum Entwicklung und Einsatz von Geosoftware I - Sitzung 7 User Interfaces in Java Sommersemester 2003 Lars Bernard.
Projektübung Klimamodellierung
Projektübung Klimamodellierung André Paul. Vorbesprechung Projektübung Klimamodellierung ( ) – A. Paul.
Objektorientierte Programmierung JDK-Klassenbibliothek
Programmieren mit JAVA
Modulare Programmierung
04 - Actions Actions Actions 2 Motivation In verschiedenen Swing-Komponenten werden ausgelöste Aktionen durch ActionListener behandelt. Häufig werden.
Java in 9 Folien Besser: Online-Buch Go to Java 2.
© 2002 Dr. Cavelius - Ley - Pohlig - Taulien Step by step zum JFrame 1 Zum JFrame Step by step by step by step by step by step by step by step by.
© 2005 Pohlig GK Informatik K Zum JFrame Step by step by step by step by step by step by step by step by.
© 2006 MPohlig Grundkurs Informatik mit Java 1 JFrame-Vorlage Step by step by step by step by step by step by step by step by.
© 2005 Pohlig – Taulien: Die Matheamatik-GUI als Applet Come Together 1 April 2005 Was ist ein Applet Ein Applet ist ein Javaprogramm, das die VM benutzt,
Munz – IT/TG - Lörrach. Goals of this intensive lecture To learn: To learn: –What does it means programming in Java ? –What is JAVA good/bad for ? –Which.
Sommersemester 2004 Jan Drewnak Entwicklung und Einsatz von Geosoftware I Praktikum Sitzung 7 Sitzung 7: User Interfaces in Java.
Die Hausaufgaben: Machen Sie Ü. 7 auf S. 29
USE2ANT Die Umstellung von Use Makefiles zu Ant & Junit Von Isaac, Maleen und Marc.
Laurie Clarcq The purpose of language, used in communication, is to create a picture in the mind and/or the heart of another.
| DC-IAP/SVC3 | © Bosch Rexroth Pneumatics GmbH This document, as well as the data, specifications and other information set forth in.
BAS5SE | Fachhochschule Hagenberg | Daniel Khan | S SPR5 MVC Plugin Development SPR6P.
Java und Eclipse.
The free XML Editor for Windows COOKTOP Semistrukturierte Daten 1 Vortrag Semistrukturierte Daten 1 COOKTOP The free XML-Editor for Windows
Informatik – Programmierpraktikum Alexander Volodarski Gruppe 14
Deutsch 1 G Stunde. Donnerstag, der 25. Oktober 2012 Deutsch 1, G Stunde Heute ist ein B- Tag Unit: Family & homeFamilie & Zuhause Objectives: Phrases.
Deutsch 1 G Stunde. Donnerstag, der 18. Oktober 2012 Deutsch 1, G Stunde Heute ist ein E- Tag Unit: Family & homeFamilie & Zuhause Objectives: Phrases.
G Stunde DEUTSCH 1. Unit: Family & homeFamilie & Zuhause Objectives: Phrases about date, weather and time-telling Alphabet – pronunciation and words The.
Deutsch 1 G Stunde. Montag, der 22. Oktober 2012 Deutsch 1, G Stunde Heute ist ein F- Tag Unit: Family & homeFamilie & Zuhause Objectives: Conjugations.
Deutsch 1 G Stunde. Donnerstag, der 18. Oktober 2012 Deutsch 1, G Stunde Heute ist ein D- Tag Unit: Family & homeFamilie & Zuhause Objectives: Phrases.
Deutsch 1 G Stunde. Montag, der 10. September 2012 Deutsch 1 (G Stunde)Heute ist ein D - Tag Unit: Introduction to German & Germany Objectives: Introducing.
Your name Bedeutung von Internet- Technologien Gruppe 1 Andreas Feuerstein Philipp Hochratner Christian Weinzinger.
You need to use your mouse to see this presentation
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
You need to use your mouse to see this presentation © Heidi Behrens.
Department of Computer Science Homepage HTML Preprocessor Perl Database Revision Control System © 1998, Leonhard Jaschke, Institut für Wissenschaftliches.
INTAKT- Interkulturelle Berufsfelderkundungen als ausbildungsbezogene Lerneinheiten in berufsqualifizierenden Auslandspraktika DE/10/LLP-LdV/TOI/
XML IV: Cocoon 2.
DEUTSCHLAND UND DIE MEDIEN
DEUTSCHLAND UND DIE MEDIEN
The Seven Main Sentences T refers to the German version appearing in the Routledge edition of the Ogden translation; P to the Prototractatus, an early.
Modal Verbs Modal verbs are not action verbs!
Kölner Karneval By Logan Mack
Ein Projekt des Technischen Jugendfreizeit- und Bildungsvereins (tjfbv) e.V. kommunizieren.de Blended Learning for people with disabilities.
External Labels – The rules For all external labels the following rules apply (external labels are all labels which are not inside of a shape) - all labels.
Heute ist Montag, der 17. September 2012: Lernziel: 1.Diskussion: Sprechen 2.Wie kommst du zur Schule? 3.Leseverständnis (Reading Comprehension) 4.Quiz.
Learning By Doing Ereignissteuerung (Events) prozedural ereignisgesteuert Unterprogrammaufruf an fest codierter Stelle Wann immer der Event auftritt, führe.
Greetings and goodbyes Deutschland v. USA
German Word Order explained!
Separable Verbs Turn to page R22 in your German One Book R22 is in the back of the book There are examples at the top of the page.
Dyabola Archäologische Bibliographie Römisch-Germanischen Kommission (RGK) Author searches – compound names Bibliotheken Click = next Libraries.
Launch ON Global.vi System ID object name classname Services to suscribe Observer Control Ref vi-path Service name Step 1 : Objects register to the Global.vi´s,
Technische Universität München 1 CADUI' June FUNDP Namur G B I The FUSE-System: an Integrated User Interface Design Environment Frank Lonczewski.
Mann gegen Man Man / Husband One Mann = man =
You need to use your mouse to see this presentation
By Martin L. Loeffler.  The basic sentence has a subject and a verb.  The subject and verb need to be together.  The subject and verb need to agree.
Kleidung Projekt For this project you will critique 4 or 5 outfits as worn by “celebrities”. You may not write anything on the slide except for maybe a.
You need to use your mouse to see this presentation © Heidi Behrens.
© 2005 Pohlig Informatik Jg. 11 mfH Michael Pohlig 1 Zum JFrame Step by step by step by step by step by step by step by step by.
Weak pushover verbs..... lieben kaufen spielen suchen....are verbs that do exactly as they are told. They stick to a regular pattern that does not change!
 Präsentation transkript:

FAQ Session – Assignment 1 FG Telekooperation Prof. Max Mühlhäuser Dirk Bradler, Julian Schröder-Bernhardi :

Outline Wie programmiere ich in Java plattform unabhängig Path-Separator AWT SWING SWT :

Path-Separator Viele Tricks Der sichere Weg: http://www.java1.de/basicjava/5.7_IO.html Der sichere Weg: Benutzen von File.separator oder File.pathSeparator wenn Strings mit Pfade erzeugt werden Und/oder File objects anstelle von Strings, wenn ein Pfad benötigt wir :

Path-Separator Using File.pathSeparator in Strings String myRelativePath = "mydir" + File.pathSeparator + "myFile.txt"; A path using '/' within File is always translated correctly // in Unix remains as it is, in Windows translates to C:\mydirectory\myfile.txt File myFile = new File("/mydirectory/myfile.txt"); :

Path-Separator Java liefert alles was benötigt wird System.getProperty("os.name"); System.getProperty("file.separator"); System.getProperty("path.separator"); System.getProperty("line.separator"); System.getProperty("os.version"); ABER einfacher: Immer „/“ verwenden Funktioniert bei allen *NIX-Systemen + MAC Wird von Windows API unterstützt Homeverzeichnis finden mittels System.getProperty("user.home") Sowohl auf *NIX als auf Windows Systemen :

AWT „Abstract Window Toolkit“ Seit1995 Nur GUI Komponenten umgesetzbar, die auf allen Plattformen verfügbar sind Guter Ansatz, jedoch Nicht leistungsfähig genug Nicht wirklich ansprechend :

Swing Seit 1998 Früher sehr langsam Heute besser  Implementierung in *NIX und Windows identisch Sieht seid JDK 5 sowieso besser aus  Der Standard-Stil (Look&Feel) ist immer noch häßlich :

Swing Java zeichnet die Komponenten selbst Seit JDK 1.6 mit stärkerem Hardware-Support und Beschleunigung durch native Komponenten Immer noch plattformunabhängig! Swing-Komponenten werden direkt von Java gerendert Nicht von nativen Betriebssystemkomponenten abhängig Alle Swing-Komponenten auf allen Plattformen gleich Manche Swing-Anwendungen (vor allem alte) wirken betriebssystem-fremd Durch entsprechenden Pluggable Look-and-Feels kompensieren :

Simple „Hello World“ via Swing (Danke an Wikipedia) import javax.swing.*; class HelloWorldSwing { public static void main(String[] args) { Runnable guiCreator = new Runnable() { public void run() { JFrame fenster = new JFrame("Hallo Welt mit Swing"); fenster.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JLabel label = new JLabel("Hallo Welt"); fenster.getContentPane().add(label); fenster.setSize(300, 200); fenster.setVisible(true); } }; SwingUtilities.invokeLater(guiCreator); :

SWT „Standart Widget Toolkit“ Seit 2001 Idee: Nutzung der nativen Widget und zusätzlicher Implementierungen Funktioniert unter Windows Funktioniert unter *NIX Aber Implementierung ist nicht plattformunabhängig SWT muss auf das jeweilige OS portiert werden Lässt sich theoretisch plattformunabhängig schreiben und packen :

SWT Benötigte Pakete: org.eclipse.swt.*; org.eclipse.swt.widgets.*; Ein Display-Objekt repräsentiert das zugrundeliegende Windows-System: Display display = new Display(); Ein Shell-Objekt enthält die einzelnen Elemente (Widgets). Es ist vergleichbar mit dem JFrame in Swing: Shell shell = new Shell(display); :

Simple „Hello World“ via SWT import org.eclipse.swt.widgets.*; import org.eclipse.swt.*; public class HelloWorld { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); Label label = new Label(shell, SWT.NONE); label.setText("Hello, World!"); shell.pack(); label.pack(); shell.open(); while (!shell.isDisposed()) if (!display.readAndDispatch()) display.sleep(); display.dispose(); label.dispose(); } :

Fazit Swing am angenehmsten Geschwindigkeit zumindest vergleichbar Vollständige Plattformunabhängigkeit :

Erinnerung Assignment sheet on the Web page of the Praktikum Milestones: TCP client and server Simple Web server Web server improvements Important: pay attention to error-semantics, be conservative (i.e. follow the RFC) in what you send Deadline for returning: 05.11.2008 at 12:00 To be returned: Code with comments, test cases used Send at bradler@tk.informatik.tu-darmstadt.de CC at jschroed@tk.informatik.tu-darmstadt.de :

Erinnerung In each assignment, return the following: Compiled JAR-File Executable!!! Including Java source code The code should follow the coding guidelines given on the next pages Code not following the guidelines may be graded inferior compared with functionally equivalent code that does follow them Short written report What you have done, what is missing, how you implemented it Describe design choices, why you did them, etc. UML diagram is ok, if you know UML :

What You Need to Do (2) Test cases used Test cases may be defined informally in the written report or formally with JUnit tests The names and Martikel numbers of all people in the group must be present in the written report and in the e-mail Subject [IPWS0809][Assignment X | Question][Group Y] Return as a zip-file by email to bradler@tk.informatik.tu-darmstadt.de CC: jschroed@tk.informatik.tu-darmstadt.de :

Questions? :