Table of Contents

This is not a current assignment. If you are currently enrolled in SE1020, do not do this assignment expecting to receive credit for it.

Lab 3: Media Player Handling Events

Objectives

* become familiar with event driven programming

Assignment

In this lab, you will continue the work you began on the Media Player in lab 2. In particular, you will add functionality to the various UI components.

Added Functionality

You should add the following functionality to your Media Player UI:

Basic UI

Basic Playlist

You should add the following functionality to your Playlist Manager UI:

Basic Playlist

Detailed Requirements

  1. Modify the MediaPlayerUI and PlaylistManagerUI classes so that the GUI components (e.g, buttons, text fields, etc…) that can be are declared locally in the constructors instead of object attributes. Note: some GUI components must be attributes since they need to be modified by the event handler in the inner class.
  2. Modify the MediaPlayerUI class so that it has a PlaylistManagerUI object as a field.
  3. Add an inner class to each UI class to handle the events as described above. Class Diagram
  4. Add a public method to the PlaylistManagerUI class called setVisible() This method should be called from the MediaPlayerUI object when the “Playlist Manager” button is clicked. Class Diagram
  5. Draw a sequence diagram for the Open Playlist button press on the Media Player UI.
  6. Draw a sequence diagram for the Cancel button press on the Playlist Manager UI.

Tip: use this EA file (zip'd to save space) as a starting point for the sequence diagrams you are required to generate.

FAST Data

You should indicate how much time (in minutes) you spend on this assignment in the FAST database. You are encouraged to log your activity as you work on the project. At a minimum, you should log all of the time spent on this assignment before the due date given above. All time spent on this assignment should be entered into the week 3 column (even if you worked on it in week 4).

Lab report

You should follow your instructor's instructions for your lab report.

Dr. Suri Dr. TaylorDr. Hornick

If you have any questions, consult your instructor.