Re: Using JProgressBar to show file upload progress
- From: "mpalermo@xxxxxx" <mpalermo@xxxxxx>
- Date: 3 Nov 2005 21:52:32 -0800
Okay, I just found the solution. Just in case anyone else out there is
having a similar problem, all I did was change the above ButtonListener
class code to this instead:
class ButtonListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
preUpload();
new Thread(new Runnable() {
public void run() {
String allText = fileListArea.getText();
StringTokenizer st = new StringTokenizer(allText,
"\n");
if (st.countTokens() > 0) {
connectToFTP();
while (st.hasMoreTokens()) {
String line = st.nextToken();
doUpload(line);
System.out.println("FILE: " + line);
}
disconnectFTP();
}
}
}).start();
postUpload();
}
}
Thanks for all your help guys. I really appreciate it!
.
- Follow-Ups:
- Re: Using JProgressBar to show file upload progress
- From: Nigel Wade
- Re: Using JProgressBar to show file upload progress
- References:
- Using JProgressBar to show file upload progress
- From: mpalermo@xxxxxx
- Re: Using JProgressBar to show file upload progress
- From: Andrew Thompson
- Re: Using JProgressBar to show file upload progress
- From: mpalermo@xxxxxx
- Re: Using JProgressBar to show file upload progress
- From: Andrew Thompson
- Re: Using JProgressBar to show file upload progress
- From: mpalermo@xxxxxx
- Re: Using JProgressBar to show file upload progress
- From: Nigel Wade
- Re: Using JProgressBar to show file upload progress
- From: mpalermo@xxxxxx
- Using JProgressBar to show file upload progress
- Prev by Date: Get data from external config file securely
- Next by Date: Re: newbie JSP question
- Previous by thread: Re: Using JProgressBar to show file upload progress
- Next by thread: Re: Using JProgressBar to show file upload progress
- Index(es):