Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Folder Selector

 
ajeesh_online
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got "File Selector in SWING" is there any "Folder SELECTOR" Option?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFileChooser fc = new JFileChooser(".");
fc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic