I've created a custom event
alert = new WindowEvent(parent, AWTEvent.RESERVED_ID_MAX+1);
if obj is a reference to the object that i want to receive the event and i type obj.dispatchEvent(alert) is that sending the event to obj?
If it does, how can I detect that event.
I tried
enableEvents(AWTEvent.RESERVED_ID_MAX+1);
processEvent(alert);
then i have addWindowListener(new WindowAdapter(){
public void listenForAlert(WindwoEvent e){
//code
}
});
that doesn't work, and it was quite unlikely it would but i tried hehe. anyway, how can i create a custom listener. I'm not even sure if i'm on the right track here.
thank you!
Avendeval
alert = new WindowEvent(parent, AWTEvent.RESERVED_ID_MAX+1);
if obj is a reference to the object that i want to receive the event and i type obj.dispatchEvent(alert) is that sending the event to obj?
If it does, how can I detect that event.
I tried
enableEvents(AWTEvent.RESERVED_ID_MAX+1);
processEvent(alert);
then i have addWindowListener(new WindowAdapter(){
public void listenForAlert(WindwoEvent e){
//code
}
});
that doesn't work, and it was quite unlikely it would but i tried hehe. anyway, how can i create a custom listener. I'm not even sure if i'm on the right track here.
thank you!
Avendeval