[3963] in java-interest

home help back first fref pref prev next nref lref last post

How do I wake myself up?

daemon@ATHENA.MIT.EDU (Michael Slominski)
Tue Dec 5 21:05:56 1995

Date: Tue, 5 Dec 1995 13:25:33 +0800
From: michael@earthlight.com (Michael Slominski)
To: java-interest@java.sun.com

I have a task that requires that a thread sleep, or otherwise wait,
for a length of time before continuing - I've been using the
Thread.sleep() method to do this. Now I'd like to set things up so
that when I get a mouseDown event, I wake this sleeping/waiting thread
up. I've tried using the interrupt() call
(i.e. "theThread.interrupt()" ) in my mouseDown method but I keep
getting "java.lang.NoSuchMethodError" traced back to the interrupt()
call.

So what's the right way to do this? Am I even on the right track? Should

-m


Michael Slominski
Slominski Consulting
408.738.1446
michael@earthlight.com
http://earthlight.com


-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post