FHTW Berlin

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


Exercise 2: Java Review:
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 code, is due in email box of your instructor by 8.00 next Wednesday. Do not forget to put your names on the top of the report! It is also a good idea put the number of the exercise somewhere in the title of your report.... When you send the URL of the report to your instructor, always include your partner in the CC. That way we don't get either 2 emails or none, because each or your thought the other was sending it. This has the added advantage that when we answer you, we can immediately answer both of you without having to look up the email account of your partner.


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