protected void dispatchEvent(AWTEvent evt) { if (evt instanceof ActiveEvent) {
protected void dispatchEvent(AWTEvent evt) { currentEvent = evt;  if (evt instanceof InputEvent) lastWhen = ((InputEvent) evt).getWhen(); else if (evt instanceof ActionEvent) lastWhen = ((ActionEvent) evt).getWhen(); else if (evt instanceof InvocationEvent) lastWhen = ((InvocationEvent) evt).getWhen();  if (evt instanceof ActiveEvent) {
	protected void dispatchEvent(AWTEvent evt) {		if (evt instanceof ActiveEvent) {			ActiveEvent active_evt = (ActiveEvent) evt;			active_evt.dispatch();		} else {			Object source = evt.getSource();			if (source instanceof Component) {				Component srccmp = (Component) source;				srccmp.dispatchEvent(evt);			} else if (source instanceof MenuComponent) {				MenuComponent srccmp = (MenuComponent) source;				srccmp.dispatchEvent(evt);			}		}	}