File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes save as text Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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: 24054
    
  13

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 agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: save as text
 
Similar Threads
Pearson Transitioning
Issues with Graphics2D drawString method
Weird actionPerformed method.
F5 or page refresh calls onSubmit of spring controller - database again updated
export daa in CSV and store the file in local drive