void (ActionEvent e) { // choose directory here/ FileChooserDescriptor fcd = FileChooserDescriptorFactory.createSingleFolderDescriptor(); fcd.setShowFileSystemRoots(true); fcd.setTitle(message("dialog.title.export.directory")); fcd.setDescription(message("label.select.directory.to.export.from.subversion")); fcd.setHideIgnored(false); VirtualFile file = FileChooser.chooseFile(fcd, getContentPane(), myProject, null); if (file == null) { return; } myPathField.setText(file.getPath().replace('/', File.separatorChar)); }