This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes save as text Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "save as text" Watch "save as text" New topic
Author

save as text

Naf Rash
Ranch Hand

Joined: Feb 19, 2004
Posts: 85
I am using a Save JFileChooser but want all files to be saved as textfiles. How do I do this? Could you please provide some examples.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24189
    
  34

Not sure what you mean; can you elaborate?


[Jess in Action][AskingGoodQuestions]
Naf Rash
Ranch Hand

Joined: Feb 19, 2004
Posts: 85
Well at the moment when a file is saved using this dialog, I can't open it but if I had used this:
"P:\\filename.txt"
then the file is saved and opened through notepad(which I do not specify)
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: save as text
 
It's not a secret anymore!