This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Serialize and deserialize an object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serialize and deserialize an object " Watch "Serialize and deserialize an object " New topic

Serialize and deserialize an object

pamela jones

Joined: Apr 26, 2003
Posts: 5
How do I serialize an object to a file on my disk and then deserialize to recover the input entered into the JPanel earlier? I am having some difficulty with this. Thank you.
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Hi, Pamela. Did the previous responses to your question not help?
You can also read about serialization here.

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Don't get me started about those stupid light bulbs.
subject: Serialize and deserialize an object
Similar Threads
can someone explain to me in general words...serializable and deserialized?
serializing an object: references?
Serialization without creating the file
Question about clone a Hashtable
Serialization doubt