Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to choose fold  RSS feed

 
John bai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm new .i want to choose fold ,but JFileChooser only choose file ,what should i do?please help me
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you look at the API docs for JFileChooser, there is a method called setFileSelectionMode() that apparently lets you select directories (or folders).

Layne
 
John bai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh,thank you very much.
because english is not my mother language,i have some trouble using english.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!