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...