Thread a = new Thread(new Runnable() {
@Override
public void run() {
final ProgressBarFrame importer = new ProgressBarFrame();
importer.setImagesCount(imagesList.size());
importer.setVisible(true);
int processors;
if(Utils.prefs.getInt("importNumThreads", 0) == 0){
processors = Runtime.getRuntime().availableProcessors();
} else {