FHTW Berlin

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


Exercise 2: Introduction to Inheritance, Panels,
and Layouts

Okay, so now you understand how a GUI is set up. Let's have a look at the inheritance we need (remember that?) and look at Panels and Layouts. The exercise for today is Part 2: Introduction to Inheritance, Panels, and Layouts

  1. Read through the inheritance part and do the exercise steps. You will now be enhancing the DiverLog application. Are you now sure what inheritance is? Do you remember what the difference to an interface was?
  2. Now proceed to Containers and Components - what is the difference between the two?
  3. Go on with Layouts. What do you need to do to set a Layout? What is the default Layout? Are there any problems with it?
  4. Do Labels and Text Formatting. (For the bored) How can you find out what Fonts are available on your machine? Choose a fancier font than just the default that is available on your machine.
  5. Now, just add all the stuff to your Panel as described in the last section. That was easy, wasn't it?

The URL to your report, which will describe what you did during the exercise and include links to your design and your code, is due in my email box by the start of exercise 3. 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)