Friday, December 11, 2009

Java: Hotline Update #13

An update was needed for the Hotline program, specifically emails are now going to be tracked following the same guidelines and options as phone calls. The hard part was already done thanks not having a different set of options to select from. So the OptionPanel file was copied and renamed to EmailPanel to create the new program tab. Along with this the pop-up messages that appear were renamed to mention an email was tracked as opposed to a call.

However some changes were made as left to the current setup the user would have to log into both tabs individually, which allows the possibility of doing so incorrectly for one of them and causing significant tracking issues. So I borrowed some code from the Enguard program and required the users to log into the application upon startup, before the program window appears. Then once logged in the bottom panel displays what type of tracking that page performs as well as the individual logged in instead of the JComboBox that was there before for logging in.


In order to make it painfully obvious which tab was for calls and which for emails the email tab was recolored, I used Dark Salmon (light red) which made a nice contrast to the opaque blue of the call panel. Along with this borders were placed on all of the buttons to better distinguish them from one another.

Now that there are two reporting tools being used in the program, they each need a separate way to have reports run on them. As such a JMenu was added with two JMenuRadioButtons, one for emails and one for phones. Depending on which one was selected the report would pull the corresponding data for the Report tab.

Right now there isn't a way to combine the two reports together, but that's in the works. Along with that I will be hiding the Report JMenu from anyone who doesn't have the privileges to view the Report tab, just to avoid confusion.