listeners.add(cl);
CharacterEvent ce = new CharacterEvent(source, c); Enumeration e; synchronized(listeners) { e = listeners.elements(); while (e.hasMoreElements()) { ((CharacterListener) e.nextElement()).newCharacter(ce); } }
listeners.remove(cl);