1 comment

I coded like this, this is worked. thanks everyone .

     String path = "/Users/twer/Downloads/";
        VirtualFile[] files = FileChooser.chooseFiles(FileChooserDescriptorFactory.createSingleFolderDescriptor(), event.getProject(), null);
        if (files.length > 0) {
            path = files[0].getPath();
        }

1

Please sign in to leave a comment.