You can also write code to serialize the object (the object with the text field) and simply write the object out to disk. you can load the serialized object easily.
//Write out the serialized objects to file
FileOutputStream file = new FileOutputStream (currFileName);
ObjectOutputStream out = new ObjectOutputStream(file);
//Write out the object
out.writeObject(idPane);
OR
File file = new File(//some file);
file.createNewFile();
// Create an output writer that will write to that file.
// FileWriter handles international characters encoding conversions.
FileWriter out = new FileWriter(file);
out.write(buffer);
out.close();
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.