• Post Reply Bookmark Topic Watch Topic
  • New Topic

Upload large file with Resume

 
Muhammad Sarwar
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I have been given a task to update large files with(http) resume functionality using an applet.
But the problem that I am facing is that when upload is started in applet all other actions does not work ...even click on 'Pause' button is not generating an event.so I am not able to test anything unless the upload is done
Please tell me how can I handle this issue.
thanx
 
Joe Ess
Bartender
Posts: 9362
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You probably have a button to start the upload and upload the file in the action listener code. This means you are executing your upload in the Swing event thread, effectively paralizing the GUI until your upload completes. You should be using a seperate thread to upload the file. Have a look at the Java Tutorial chapter on Threads and Swing
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!