Hi

In the code I'm writing, a particular situation can occur which needs to
wake up a Behavior subclass.  Unfortunately, none of the standard wakeups
are appropriate.  There seem to be two possibilities:
1: Create an instance of an AWTEvent and use WakeupOnAWTEvent.  I can't seem
to get this to work.  Do you need an eventListener added to the Behavior
subclass object?  If not, what am I doing wrong?

public class testEvent extends Behavior{
    private WakeupOnAWTEvent wEvent;
    private int eventID;

    public testEvent(int id){
        eventID = id;
    }

    public void initialize(){
        wEvent = new WakeupOnAWTEvent(eventID);
    } ...

and in the triggering code  new AWTEvent(this, id);

2:  Add a new type of wakeup, but I'm not clear on how to do this.

Any ideas, guidance, help would be gratefully received.

Tony Burrows
------------------------------------------------------
If reality is just a dream
What does that make Virtual Reality?
------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to