public static void associateEvent(BaseComponent component, String eventName, Action action) {
        getActionListeners(component, true).add(new ActionListener(eventName, action));
    }
public static void associateEvent ( BaseComponent component , String eventName , Action action ) { getActionListeners ( component , true ) . add ( new ActionListener ( eventName , action ) ) ; }
Associate a generic event with an action on this component's container.

@param component Component whose container is the target of an action.
@param eventName The name of the generic event that will invoke the action.
@param action The action to be performed.