How do I use the Dynamic Proxy API to generate event listeners dynamically?

John Zukowski

The 1.3 JDK added Dynamic Proxy (see http://java.sun.com/j2se/1.3/docs/guide/reflection/proxy.html capabilities to the core library, allowing you to effectively specify function pointers for event handling without creating all the extra classes for each listener.

For an example, The Swing Connection provides an article at http://java.sun.com/products/jfc/tsc/articles/generic-listener2/index.html.