Untitled
public text v1 · immutableIs this doable?
final DownloadFile file;
new Thread(new Runnable(){
public void run(){
while (anotherFile()) {
file = new DownloadFile(URL, LOCAL_DIR, nextFile());
}
}
}).start();
new Thread(new Runnable(){
public void run(){
while (!file.completed()) {
lblProgress.setText("Bytes received for "+file.getFileName()+": "+file.getBytesReceived());
this.wait(1000);
}
}
}).start();