daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. JFileChooser chooser = new JFileChooser(".");
  2. chooser.setMultiSelectionEnabled(true);
  3. chooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
  4. int ret = chooser.showOpenDialog(null);
  5. if(ret == JFileChooser.APPROVE_OPTION) {
  6.     File[] files = chooser.getSelectedFiles();
  7.     ...
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top