Guest User

Untitled

a guest
Aug 18th, 2019
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. File folder = new File("src\main\java\icon"); //сохранение файлов
  2. File[] listOfFiles = folder.listFiles(); //в массив
  3.  
  4. hod=hod+1;
  5.  
  6. jLabel1.setIcon(new javax.swing.ImageIcon(listOfFiles[hod]));
RAW Paste Data