- Messages
- 5,508
- Reaction score
- 35
- Points
- 48
This is my case:
I have a swing GUI with a jProgressBar on. Then I have a jFileChooser where you could choose images, which gets read by an input stream that searches the end of the files for some bytes.
I want the jProgressBar to update after every file gets searched, so if I choose 100 files, 1 file would be 1% complete.
Now I know how to do this, thing is that the GUI is frozen while it searches. How would I fix this? Threads?
I have a swing GUI with a jProgressBar on. Then I have a jFileChooser where you could choose images, which gets read by an input stream that searches the end of the files for some bytes.
I want the jProgressBar to update after every file gets searched, so if I choose 100 files, 1 file would be 1% complete.
Now I know how to do this, thing is that the GUI is frozen while it searches. How would I fix this? Threads?