Getting Kinda Desperate (No Tutorials Have Helped)

i dunno how to ask this question. ive asked it so many times and each time has been a failure.

ill try to explain it as best i can so please bear with me:

i am creating a phone book. i need to be able to save and load contacts to and from the phone book. i was told that serializing swing components was a bad idea, and that i should save each contacts information (name, number, email etc.) separately (i presume as a string). ive read the tutorial, on this website, about serialization but it did not help me in the situation that i was in.

im having a bit of trouble saving contact info but my biggest concern is that i dont know how ill be able to load each contacts info back into its original place before the application was exited.

i hope that this explains my problem well enough. if u need any of my code just ask

any help would really be appreciate, thnx guys.

Message was edited by:

Alex1989

Message was edited by:

Alex1989

[999 byte] By [Alex1989a] at [2007-11-27 3:58:58]
# 1

What you have to do is to create a class that represents the contact. It should implement the serializable interface. Then you must store the instances of that class in the serialized files. Tere you have to select how to store the data such as whether to store all the contacts in one file sequencially or whether to store them in individual files.

Also take a look at http://www.db4o.com/ its a java object database.

LRMKa at 2007-7-12 9:03:27 > top of Java-index,Core,Core APIs...