• Post Reply Bookmark Topic Watch Topic
  • New Topic

JFileChooser validation  RSS feed

 
Rishita Vishnu
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using a JFileChooser with default FileSelectionMode (FILES_ONLY) as per my requirement.

How i can retrieve the folder name, when i select the folder in the current directory.

i have used the following code for selecting the folder name

but it returns null on folder selection.


I hope you can help me out here.

Thanks
Rishita
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!