Mayank S
asked on
posting to event-queue
Hi folks,
Can I make my own event class (that extends AWTEvent) and post it to the event-queue? Will the event-queue take care of calling listeners for it? How to add listeners for this kind of an event?
Thanks,
Mayank.
Can I make my own event class (that extends AWTEvent) and post it to the event-queue? Will the event-queue take care of calling listeners for it? How to add listeners for this kind of an event?
Thanks,
Mayank.
Toolkit.getDefaultToolkit( ).getSyste mEventQueu e().postEv ent(AWTEve nt theEvent)
ASKER
I know that, we can directly use EventQueue.postEvent () in fact. But how do I go about adding listeners to the sources? They will be my own classes (sources as well as listeners).
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
CEHJ, that is how I had done it - was wondering if there is a shorter approach ;-)
:-)