problem in saving file
i have used the following code to save the text in a textpane into a file
final RTFEditorKit kit = new RTFEditorKit();
OutputStream out = new FileOutputStream(fname);
where jfr is the main frame,jta is the textpane,fname is the filename given by the user,doc is the styled document of the text pane...
my problem is that when i give the filename and click save button the text is stored in the file but the textpane is made empty..why is that happening..??
Here's where an SSCCE would help us to much better understand just what is not working. Please have a look at the link and consider posting one. Best of luck!
Thank you for this link, I shall use it in the future :)
Originally Posted by Fubarable