0

I have created a class for uploading a data from excel format to mysql database. The class contains the method to upload into the database. I am using button to call the method. That uploading process taking very long time to upload So, I want to add a progress bar for that process anyone can help me to complete this process,

scbose
  • 1
  • 1
  • 7

1 Answers1

1

You need to use a SwingWorker thread to do the processing and update the progress bar from that.

http://docs.oracle.com/javase/tutorial/uiswing/concurrency/worker.html

Tim B
  • 40,716
  • 16
  • 83
  • 128