FHTW Berlin

FB 4
Internationale Media and Computing
MeSoII: Media Software II
Sommersemester 2002


Exercise 7: Basic 2D programming

The tutorial for today is to be found at
http://developer.java.sun.com/developer/onlineTraining/Media/2DText/

It is not a JGuru tutorial, and is a bit terse on the explaination side. I would take points off for this, if it was submitted to me as a report :-) But the exercises are pretty cool, so we are going to run with it, anyway. I'm sorry I didn't make the chat yesterday, I completely forgot about the time difference!

  1. 2D means text layout und flow in Javaspeak. It is also concerned with Unicode, which is an important concept that I want you to understand this week. Read through the tutorial and play with the code snippets, reporting on what you played with. You are encouraged to make up exercises of your own or extend the ones that are there! As a first step, list the fonts that are available on your machine.
  2. Try lesson 2 and do the "Filling a Clipping Area with an Image" example, this is completely and totally cool!
  3. Putting up a "Hello World" in Hebrew or in Arabic adresses some interesting questions like character set and cursor position - these scripts are writte right to left and not left to write. I would skip lesson 3 and read lesson 4. Choose one of the two languages and do a "Hello World" window for us! Mixing Arabic and English in one text is something wild for the bored.
  4. Go on and play with Justified Text in Lesson 5, but only if you have time.

Include the answers you gave for the multiple choice questions. Do you agree with all of the answers given?



The URL to your report, which will describe what you did during the exercise and include links to your code, is due in my email box by the start of exercise 4. This means Tuesday at 8.00 for Group 1 and Thursday at 12.00 for Group 2. Do not forget to put your names on the report! When you send the URL to me, include your partner in the CC. That way I don't get either 2 emails or none, while each thought the other was doing it. And when I answer you, I can immediately answer both of you without having to look up your preferred email account.

 


Debora Weber-Wulff (weberwu@fhtw-berlin.de)