Menu
Does anybody know how to open many files in one FileChooser-doialog?
[CODE]
JFileChooser fc = new JFileChooser(startPath);
fc.setDialogTitle(“Open files”);
fc.setFileSelectionMode(JFileChooser.FILES_ONLY);
[B]fc.setMultiSelectionEnabled(true);[/B]
fc.setFileHidingEnabled(false);
fc.setAcceptAllFileFilterUsed(false);
if(fc.showOpenDialog(null) == JFileChooser.APPROVE_OPTION){ // access (at least one file selected)
May I use…
[CODE]
File[] file = fc.getSelectedFiles();
for(int k=0; k<file.length(); k++){
String name = file[k].getName();
String path = file[k].getPath();
// …
}
…or what to do?? Please help me!