Hi guys,
This is my client design. Feel free to comment on any part of them.
Note: Please do see the threads "database design" & "server design".
CLIENT DESIGN
-------------
1. Used a connect dialog box to allow user to specify the location of database and to choose between local/remote mode operation.
2. The DataClient part of my client constructs an instance of Data class for local operation and RemoteData class for remote operation.
3. The client gui contains a menubar and a tool bar. The booking panel is displayed as an internal frame within the JFrame.
4. FlightBooking class is responsible for flight booking and displaying of the the Booking panel.
5. Used threads to prevent my client gui from hanging. I did this by starting a new
thread for booking operation after the user specified the total number of seats to book and pressed OK.
6. No client information is stored. Only the total number of seats booked, thats it.
7. No support for booking cancellation.
8. No support for flight booking status listing. When the user clicks on book button a dialog box displays the total number of vacant seats in the flight.
9. Implemented search by providing four combo boxes: Flight Number, Flight Date, Origin Airport, Destination Airport and a Query button.
10. Implemented online help which can be activated by pressing F1.
11. Hardcoded the flight numbers, origin & destination airport names into the client.
Any suggetios are always welcome.