final Point p = source.getLocationOnScreen(); final boolean popupTrigger = (button == MouseEvent.BUTTON2);  final MouseEvent me = new MouseEvent(source, id, System.currentTimeMillis(), 0, x - p.x, y - p.y, 1, popupTrigger, button); JNodeGenericPeer.eventQueue.postEvent(me);
if (source.isVisible()) { final Point p = source.getLocationOnScreen(); final boolean popupTrigger = (button == MouseEvent.BUTTON2);  final MouseEvent me = new MouseEvent(source, id, System.currentTimeMillis(), 0, x - p.x, y - p.y, 1, popupTrigger, button); JNodeGenericPeer.eventQueue.postEvent(me); }
	private Component postEvent(Component source, int id, int button) {		if (source == null) {			final JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit();			source = tk.getTopComponentAt(x, y);		}		//log.debug("Source: " + source.getClass().getName());		//TODO full support for modifiers        final Point p = source.getLocationOnScreen();        final boolean popupTrigger = (button == MouseEvent.BUTTON2);        		final MouseEvent me = new MouseEvent(source, id, System.currentTimeMillis(),				0, x - p.x, y - p.y, 1, popupTrigger, button);		JNodeGenericPeer.eventQueue.postEvent(me);		return source;	}