C
Cengiz
Hi,
i need a JFileChooser, with which i can select multiple files.
This works fine:
JFileChooser fileChooser = new JFileChooser("File Dialog");
fileChooser.setMultiSelectionEnabled(true);
int returnVal = fileChooser.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File[] files = fileChooser.getSelectedFiles();
...
}
But the Array files is always sorted by filename.
I want to get a list, where the order depends on the selection-order of the files.
How to make this?
I havent found a method or member in the JFileChooser-API-Documentation.
thx, Cengiz
i need a JFileChooser, with which i can select multiple files.
This works fine:
JFileChooser fileChooser = new JFileChooser("File Dialog");
fileChooser.setMultiSelectionEnabled(true);
int returnVal = fileChooser.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File[] files = fileChooser.getSelectedFiles();
...
}
But the Array files is always sorted by filename.
I want to get a list, where the order depends on the selection-order of the files.
How to make this?
I havent found a method or member in the JFileChooser-API-Documentation.
thx, Cengiz