CIS 35A: Introduction to Java Programming

Home | Green Sheet | Lectures | Assignments | FAQ | Grades | Students

Lab #16 (Exercise 17-1)

Implement an event listener as a separate class

Due Date: Thursday of Week 5
10 points

In this lab, you'll create

  1. Open the FutureValueApp file.
  2. Review the code for this application to see that the ActionEvent listener for the Calculate and Exit buttons are implemented by the FutureValuePanel class.

  3. Run the application to refresh your memory on how it works.

  4. Modify the application so that the ActionEvent Listener for the Calculate and Exit buttons is implemented in a separate class rather than by the FutureValuePanel class.

  5. Compile the application, and test it to be sure it still works correctly.

Include in your program the following comments:
  • Name of program
  • Team's name with all the names of the members (e.g. Team A: John Doe, Jane Smith, etc.)
  • Current Date
  • Computer system and compiler you are using
  • Brief description of the program

Compile and run the Java program.

Take a screen capture by hitting simultaneously the keys Alt and Print Screen (Prt Sc) of the output results (console) and paste it in MS Paint. Save it as a gif file.

When you are ready, upload the java program and the gif file by clicking the link below:

Upload Lab

I cannot grade if I don't get the files and receive your email.