posted 6 months ago
Here are the 5 classes.
At the bottom of the ThumbnailApp you should just need to change the filename that contains images you want to load. The app will load all the ".jpg" images found in the directory. This is the class you invoke to start the app.
The ThumbnailWorker using ImageIO to do sampling of the images to make reading of the images faster.
The JList is updated with the thumbnail image as it is loaded.
As you will see the code is similar to yours except is uses a JList to render the images, instead of using individual JLabels.
Have fun.