Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding a save method

 
Ronald Pruitt
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??
 
Ronald Pruitt
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic