// create the event that we'll send
for (int i = 0; i < listeners.size(); i++) { // for each listener
Object obj = listeners.elementAt(i); // get next listener
ConnectionEventListener cel = (ConnectionEventListener) obj;
//cast to something more useful
cel.connectionClosed(event); // notify this listener
}
}
/**