Lab 11

The purpose is to enhance the JTimeLogger application.

Activity

  1. Download the source for the JTimeLogger:   JTimeLogger.zip
    Unzip the archive.
  2. An ant script is provided. To compile the application, open a terminal window, navigate to the root directory containing the "build.xml" file and type
    ant
    To run the application, type
    ant run

  3. Explore the features to understand its capabilities.
  4. Study the classes that comprise the application.  Notice how the GUI is separate from the underlying data model. 
  5. Implement the following features as time allows, in the order shown:

Add Entry Detailed Requirements

The dialog is to appear like this picture:

Each data entry field displays a tooltip:
"Enter the date (MM/DD/YYYY)"
"Enter the Start time in military time (HHMM)"
"Enter the Stop time in military time (HHMM)"
"Select the task name"

Each button displays a tooltip:
"Add the entry to the time log"
"Delete the previous entry in the time log"
"Quit manual entry and return to main window"

Each button has a shortcut key.

The Date field is automatically filled in with the current date when the dialog appears.
The Task combo box is populated with the names of the phases/tasks.  (Obtained from the properties file).
The Start and Stop fields accept a 4-digit number.

When the Add button is clicked, check that none of the data fields are empty. If a field is empty show a popup error message. (For now you may assume that the any user-supplied data is valid.)

The Dialog stays visible to allow multiple entries until the user clicks Quit.


Submission

Demonstrate your completed program to the instructor.
Create a zip file containing all the source code files. Name it Lab11.zip.
Submit the zip file via handin to the "Lab11" folder.