void (ActionEvent e) { for (String file : myPaths) { myFilesList.setChecked(file, e.getSource() == mySelectAllButton); } myFilesList.clear(); myFilesList.init(); setOKActionEnabled(isOKActionEnabled()); }