Hi Team In my assignment solution, i am allowing the user to specify the database file with location using FileDialogBox in local mode. The user can choose any .db file which has the correct format. This means that the database file name need not be db.db. It can be abc.db or db30july.db etc. But extension should always be .db This provides more flexibility. Is it correct ? Should i ask user to only specify the location/directory of the database file and i assume the database file name always to be db.db How others have handles it ? [ July 17, 2002: Message edited by: Amit Kr Kumar ]
Thanks Mark Yup i have handled itas Data.java will throw IOException if it is not in expected format
Joined: Jul 11, 2002
Hi, I do not think this is in the requirements. Think of a situation when you are in a customer situation, would you build it as well, even if the customer did not include this in the requirements and will therefore not pay for it ? I agree however that this project is more about learning java/patterns etc and not about a client situation. Therfore if you want to do it, just go ahead, but indeed do as mark S. says, make sure you have exceptions handled. Also make sure that your views work with different models / database layouts, that if you open another db file with different fields, that everything still works. good luck regards,friso
swimming certificate (A & B), shoelaces diploma, and some useless java ones.