hpchong7
asked on
event listener
Is it true that an Event Source can only have one Listener?Why?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I hope this doesn't sound too smart-ass but, well, here I go.
Here in switzerland we got a saying:
"Trying is better than reflecting"
While don't agree with this all times, sometimes you are stuck with a problem because you keep hesitating for hours to do something. Just because you think you won't do it optimaly. And afterwards you feel like an idiot, because it was so easy in the end and wasted a lot of time.
Why don't you create a short programm and see what it does if you try to attach to Listeners to you 'Event Source' and see what happens?
Here in switzerland we got a saying:
"Trying is better than reflecting"
While don't agree with this all times, sometimes you are stuck with a problem because you keep hesitating for hours to do something. Just because you think you won't do it optimaly. And afterwards you feel like an idiot, because it was so easy in the end and wasted a lot of time.
Why don't you create a short programm and see what it does if you try to attach to Listeners to you 'Event Source' and see what happens?
ASKER
Thanks!
I am sorry that apart from actionlistener,I do not know what kind of listerns Java has!
I am sorry that apart from actionlistener,I do not know what kind of listerns Java has!
ASKER
THank you very much!
ASKER