jQuery in Action, 2nd edition*
The moose likes Threads and Synchronization and the fly likes Fire an event from a thread? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply locked New topic
Author

Fire an event from a thread?

Warren Bell
Ranch Hand

Joined: Dec 20, 2000
Posts: 56
I have a thread that checks for a certain file to appear in a folder. I need this thread to notify the object it was created in that the file was found. Can I fire an event from the thread? Or is there a better way of doing this. If I can fire an event from a thread, how do you do that?
Thanks,
Warren Bell
warren@netricks.net
[ June 25, 2003: Message edited by: Warren Bell ]

Warren Bell
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Please don't post duplicate questions in different forums. Followups please go here. Thanks.


"I'm not back." - Bill Harding, Twister
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Fire an event from a thread?