Order of listerners

Hello

I have an object that can add/remove listeners into/from it. For example

myObject.addListener(aListener1);

myObject.addListener(aListener2);

myObject.addListener(aListener3);

myObject.removeListener(aListener2);

myObject.removeListener(aListener4);

My question is if there is an event, those listerners will act following the "add" order ?. That mean aListerner will do first then 3, 4...

Thank you for your help

sho

[484 byte] By [sonhoanga] at [2007-11-27 1:55:50]
# 1
> My question is if there is an event, those listerners will act following the "add" order ?. That > mean aListerner will do first then 3, 4...No. No order is guaranteed. Somewhere in the JDK documentation, you will find the description for that.
hiwaa at 2007-7-12 1:29:26 > top of Java-index,Java Essentials,New To Java...
# 2
Thanks for the replyI tried to find the document about this but could not find out
sonhoanga at 2007-7-12 1:29:26 > top of Java-index,Java Essentials,New To Java...