is there a way to remove a GLEventListener if the reference is unknown? from looking at the jogl source code i can tell that there is no way to do so.
public synchronized void addGLEventListener(GLEventListener listener) {
List newListeners = (List) ((ArrayList) listeners).clone();
newListeners.add(listener);
listeners = newListeners;
}
public synchronized void removeGLEventListener(GLEventListener listener) {
List newListeners = (List) ((ArrayList) listeners).clone();
newListeners.remove(listener);
listeners = newListeners;
}
i just ran into a situation where i had a reference to a GLCanvas but not to the added GLEventListener. wouldn t it be cool to be able to poll those listeners? i know that i could always add this myself and recompile