Monday, April 27, 2009

Java: Hotline Update #10

Another month, another round of changes to the Hotline program. Again, these changes weren't anything significant. Basically three of the options were removed and replaced by three new options. As such this entailed new JButtons to be created with associated listeners, and a new piece to the If-Else statement in the ReportPanel class to handle this new variation to the call options.

Along with this I decided to get cute and inserted an easter egg into the program. Originally I was thinking a blank JButton in the OptionsPanel class to initiate the easter egg. However that seemed a bit obvious and would definitely be noticed by management, so I had to come up with another way. I settled on having the easter egg accessed via the report section, specifically when a report is run covering February 30-31st or some combination of this date range. Since these dates don't exist it won't interfere with legitimate business.

The easter egg is purely a little game. Several windows appear in succession that require an OK button to be clicked. When they are all gone a new window appears displaying the time it took to clear these windows. A lowest score is saved in a text file on the server and is compared to the individual's score, if they are lower then their score replaces the current one.

I'm going to let the reps find it on their own, but may give a slight hint to get them started.

No comments: