private boolean hasActionListener(Component comp) {
		try {
			Class[] types = { Class.forName("java.lang.Class") };
			Object[] args = { Class.forName("java.awt.event.ActionListener") };
			Method getListeners = comp.getClass().getMethod("getListeners", types);
			EventListener[] listeners = (EventListener[]) getListeners.invoke(comp, args);
			return (listeners.length > 0);
		} catch (Exception ex) {
			return false;
		}
	}