FHTW Berlin

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


Exercise 3: Receiving Input

This week we will finish off the Application set of tutorials with Part 3: Receiving Input with Text Fields and Check Boxes, and Event Handling Basics. We are now going to get that DiverLog finished up! I will not be at the FHTW on Tuesday, as I have to give a talk for the BMBF. I hope to manage to get into a chat room between 8.30 and about 10.00 (when the conference begins), in case you have any questions. Good luck!

Read the planning section. Yes, there are a lot of usability problems with this interface. Those who are bored should see if they can come up with a better layout. Then put all the variables in your Diver program for the elements on the screen. Can you explain the names chosen for the variables? Take a guess!

  1. Set up the constructor, and then create the storage for all the labels and data. Now do the checkbox and the buttons. Now make the panels and add them to the layout. Patience, if you try and compile now you will get lots of errors! Copy in the code for creating each of the panels, and now you can compile. It should be beautiful, but pretty useless, as it does nothing.
  2. Read the section on Interfaces and Event Handling. Put in all the listeners for your fields and buttons.
  3. Now, can you get it to work? There is a lot of detail in the last sections, try your best to get through, as this gives you a lot of insight back into Java.
  4. Bored? Completely and utterly bored? Add a "Save" and a "Restore" button, and implement the functionality to save and restore the data entered!

 

 


 

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)