Hey! I am having a problem with threads in applets. So I launch my applet. When the user clicks a button, then code is run, and ultimately I want to wait until the user clicks another button. So essentially, I've want a wait in one button handler, and a notify in another. No matter what I try this doesn't seem to work. Basically, no matter how I try to do it, the whole applet seems to lock up when I get to the wait. I've tried anonymous inner classes, separate action listener classes, and having the applet itself handle the events. I've tried wait/notify, I've tried sleeping in a loop and then testing a flag, and I've tried using locks. Nothing seems to work, and the behavior always seems to be that the applet locks up. Any help would be appreciated. A fragment of code would be nice, because I think there is something fundamental I am missing. I've got several books here and have tried a variety of things, but they never seem to work.
With Respect,
Matt DeLacey