![](/uploads/1/2/5/7/125762183/893380884.jpg)
Ranch Hand
Added 'Fill Date/Time From File' button to the 'Change file time / attributes' window. 'Add Files' option (F2):Add files from 'open file' dialog-box. If you want to run BulkFileChanger without the translation, simply rename the language file,.
posted 18 years agoHi,I just want to open a FileDialog to Open more than one file at a time.For eg. in winamp to add mp3 files to the playlist we are able to select even all files of the folder.I want to select some or all files of a folder and add it to a listbox.Again to choose directory as in winamp to add Directory to the playlist I want to add all files of a specific folder using select directory.Please mail to me as soon as possible
Ranch Hand
![Multiple Multiple](/uploads/1/2/5/7/125762183/443754531.png)
![Open File Dialog Multiple Files Conversion Open File Dialog Multiple Files Conversion](/uploads/1/2/5/7/125762183/698489578.png)
The only way I know how to do something like that (there is probably a better way) is to allow multiple files to be selected and then getSelectedFiles(File[] someName) throws them into an array of files.
As far as selected a DIR instead of a file, I really don't know, unless you use the FileNameFilter and filter out all but directories.
Good Luck.
------------------
Happy Coding,
Gregg Bolinger
As far as selected a DIR instead of a file, I really don't know, unless you use the FileNameFilter and filter out all but directories.
Good Luck.
------------------
Happy Coding,
Gregg Bolinger
Ranch Hand
posted 18 years agoHai Gregg, but the problem is not how to get the files selected,but how to select multiple files.when I use ctrl+ to select multiple files the previous slection is lost,even shift+ doesn't work in a FileDialog box.So please help me out to get this job done.If possible attach me a piece of sample code.Urgent please.
better suggestion
Netharam
[This message has been edited by netharam ram (edited September 01, 2001).]
better suggestion
Netharam
[This message has been edited by netharam ram (edited September 01, 2001).]
Greenhorn
posted 8 years agoin order to open a FileDialog with the option to choose more than one file you should create the FileDialog with SWT.MULTI style:
FileDialog dialog = new FileDialog(shell,SWT.MULTI);
and then get the results using:
String firstFile = dialog.open();
if(firstFile != null){
String[] files = dialog.getFileNames();
}
Guy
FileDialog dialog = new FileDialog(shell,SWT.MULTI);
and then get the results using:
String firstFile = dialog.open();
if(firstFile != null){
String[] files = dialog.getFileNames();
}
Guy
Sheriff
posted 8 years agoWelcome to the Ranch, Guy!
You probably missed that a) this question is about java.awt.FileDialog, not the SWT FileDialog, and b) netharam ram probably didn't wait 10 years for an answer
You probably missed that a) this question is about java.awt.FileDialog, not the SWT FileDialog, and b) netharam ram probably didn't wait 10 years for an answer
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask QuestionsHow To Answer Questions
How To Ask QuestionsHow To Answer Questions
Greenhorn
posted 8 years ago- 1
Hi Rob!
I was trying to find a way to multiselect using SWT FileDialog and during my search I saw this quistion..
When I found a solution, I've added it to this post so if someone will google it in about 10 years from now, he'll be able to see the answer
I was trying to find a way to multiselect using SWT FileDialog and during my search I saw this quistion..
When I found a solution, I've added it to this post so if someone will google it in about 10 years from now, he'll be able to see the answer
Sheriff
posted 8 years ago- 1
And that's exactly why we don't disapprove of kicks like this. The only reason I replied was because of the AWT vs SWT issue, but people looking for answers will of course also find this thread if they are looking for an SWT answer.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask QuestionsHow To Answer Questions
How To Ask QuestionsHow To Answer Questions
![](/uploads/1/2/5/7/125762183/893380884.jpg)