Project #2
Using GUIs - a little
(Due 25 September 2006)
You are to modify the program you wrote for project #1 in three ways.
1. Make the program obtain the names of the two data files through command line arguments. The name of the text file should be the first argument; the name of the binary file should be the second.
2. Make a new class that implements the interface specified to interact with the person at the keyboard. This new class must perform all of its interactions using JOptionPane and its methods. There should be no input through the console.
3. Make changes for at least two of the reports to be displayed in JFrames, rather than use output at the console. The two reports you must change are the one to display students in a particular major and the one to display the number of students resident in each dormitory. (Note: I would have preferred that you modify all reports so that their display is in a JFrame; however, depending on your implementation of project #1, making such a change for all reports may be easy or quite difficult or quite repetitive. So, I am limiting my requirement to change only the two reports specified; the other reports (students in a particular dorm, number of students in eachmajor, and individual information may continue to be output to the console. But, if it is easier for you to change all reports to JFrames, by all means do so.)
Hand in a printout of those portions of
your program that you changed to make project #2. The parts of project
#1 which stayed the same in project #2 need not be printed. Also,
use Print Screen capture to capture your Option Dialog window, the window
displaying the students in a particular major, and the window displaying
the number of students in each dormitory. Print these captured window
images. Copy to the P: drive in your folder, all source .java files
for your project #2 program. Use a separate folder under your name
for the project #2 files, that is, separate from the project #1 files.