SHARE
TWEET

Untitled

a guest Mar 20th, 2017 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void actionPerformed(ActionEvent e) {
  2.             JFileChooser chooser = new JFileChooser();
  3.             chooser.setMultiSelectionEnabled(true);
  4.             chooser.showOpenDialog(null);
  5.             File[] files = chooser.getSelectedFiles();
  6.             for ( File file : files ) {
  7.                 String bes = file.getName();
  8.                 System.out.println(bes);
  9.                 System.out.println(file.getAbsolutePath());
  10.             JList<File> list = new JList<File>(files);
  11.             list.setBounds(34, 86, 200, 236);
  12.             contentPane.add(list);
  13.             contentPane.setVisible(true);
  14.    
  15. public static final JList<File> filess = FlashDriveGUI.list;
  16. File filez = filess.getSelectedValue();
  17.  
  18. for (int i = 0; i < ??; i++){
  19.           source =  filess.getElementAt(i);
  20.           System.out.println(source);
  21. }
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top