1

I was wondering, I want to report some form of progress from my swing worker back to the main thread so my interface can be updated with a label that changes as the progress increases, for example

checking 1/6...

checking 2/6...

..

..

I did something similar in c# a while a go but cant remember how so now cant transfer the logic to this java application. Instead of a background worker i am using a swing worker here

Please could someone enlighten me on what i need to research

Thanks

mKorbel
  • 109,107
  • 18
  • 130
  • 305
Biscuit128
  • 5,026
  • 21
  • 84
  • 142

2 Answers2

1

For "Monitoring" SwingWorker there are

mKorbel
  • 109,107
  • 18
  • 130
  • 305
0

You already have an answer, and probably even solved your problem. But still, it might be worth looking at my answer on another SO question which contains a snippet which does almost exactly what you are looking for

Community
  • 1
  • 1
Robin
  • 35,423
  • 5
  • 46
  • 96