JFileChooser chooser = new JFileChooser();
// Enable multiple selections
chooser.setMultiSelectionEnabled(true);
// Show the dialog; wait until dialog is closed
chooser.showOpenDialog(frame);
// Retrieve the selected files. This method returns empty
// if multiple-selection mode is not enabled.
File[] files = chooser.getSelectedFiles();
Running Codes
0 comments:
Post a Comment