• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DirectoryChooser - How?

 
Em Aiy
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to open a "DIRECTORY CHOOSER" instead of JFileChooser so that user may choose the destination directory for output. how can i?
 
Davy Kelly
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this for you.
http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html

so JFileChooser could be a good tool to use.

davy
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perhaps all you need to do with your current JFileChooser is this

fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic