I'm trying to write a save action that will write a Document from a JTextComponent to a txt file. I can't seem to figure it out. I've looked at the API and that hasn't gotten me anywhere. any suggestions Mario
The documentation for Document directs you to this article on the Element interface. That article directs you to the API documentation for EditorKit which has methods for reading and writing to/from streams.