Fire Event When Thread is Complete
The app I'm working on loads some thumbnails and displays them. I already have it working, but I want to load the thumbnails in a separate thread. After plenty of googling, I figured out how to create a new thread, pass it the information it needs, and run it. The problem is, I don't know how to get the image data back when it's finished. Waiting for it is out of the question, as that would defeat the purpose of the thread :rolleyes: . The best solution I can come up with is to get it to call a method when it's finished that displays the thumbnails. My efforts to Google it were futile.
Thanks in advance!
Can objects be passed between threads?
Okay, I'll look into PropertyChangeListener. I haven't yet learned about Java Beans; I suppose this is a good opportunity :)
Alternatively, is there a way to pass a message from a child thread? I Googled that too, but to no avail.