Your wait needs to be in a synchronized block of some form ;-) or you'll get a nasty run time error ;-)
After that you'll need a notify in another
thread if you want your wait to wake up (or a time limit on the wait itself).
"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5