fy all listeners that have registered interest for // notification on this event type. The event instance // is lazily created using the parameters passed into // the fire method. protected void fireFooXXX() { // Guaranteed to return a non-null array FooListener[] listeners = listenerList.getListeners(FooListener.class); // Process the listeners last to first, notifying // those that are interested in this event for (FooListener listener: listeners) { // Lazily create the event: if (fooEvent == null) fooEvent = new FooEvent(this); listener.fooXXX(fooEvent); } } } foo should be changed to the appropriate name, and fireFooXxx to the appropriate method name. One fire method should exist for each notification method in the FooListener interface.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans
package. Please see {@link java.beans.XMLEncoder}.
@version 1.37 11/17/05
@author Georges Saab
@author Hans Muller
@author James Gosling