File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JFileChooser : User selected directory & programmatically created file name : How?

 
D R Wilkinson
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to let the user select the directory they want to save a plain text file in and have the program determine the name of the file. The attempt I have made isn't working and the more I read the API, the more confused I am getting... can anyone help me?



Thank you
[ May 06, 2006: Message edited by: D R Wilkinson ]
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
seems to work OK in this

 
D R Wilkinson
Ranch Hand
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you,

The problem lay with the char literal '\' not being added correctly.

Solved it by using "\\"

Not sure if this causes a cross platform problem?

Darren
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic