File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes adding a save method Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "adding a save method" Watch "adding a save method" New topic
Author

adding a save method

Ronald Pruitt
Ranch Hand

Joined: Jan 15, 2001
Posts: 32
I am struggling adding a save method to the following program

everytime I try to add a save it messes up the rest.
any suggestions?
I know this looks awfully convoluted but I'm new at this game.
[This message has been edited by Ronald Pruitt (edited January 23, 2001).]
[This message has been edited by Ronald Pruitt (edited January 23, 2001).]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
What are you trying to save, and to where? Are you trying for persistance? Is it the values on the GUI that you are trying to capture, or is it the file that you are writing out that you are refering to??


"JavaRanch, where the deer and the Certified play" - David O'Meara
Ronald Pruitt
Ranch Hand

Joined: Jan 15, 2001
Posts: 32
I want to be able to ultimately save the file that I have opened and the state of the GUI. Currently I can save the file and the state in the Save as portion. but I don't want to have to do a save as each time, I would like to be able to just do a save and that would save the current file that is being edited or whatever. I think what I will ultimately want to do is parse the text file and find out how many times a word is in the file etc. but I haven't go that far yet.
I hope this is understandable.
[This message has been edited by Ronald Pruitt (edited January 23, 2001).]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding a save method