/* Repost event to dispatchComponent */ private boolean repostEvent(MouseEvent e) { if (dispatchComponent == null) { return false; } MouseEvent editorMouseEvent = SwingUtilities.convertMouseEvent(grid, e, dispatchComponent); dispatchComponent.dispatchEvent(editorMouseEvent); return true; }
private void dispatchEvent(MouseEvent me) { Component src = me.getComponent(); comp.dispatchEvent(SwingUtilities.convertMouseEvent(src, me, comp)); src.repaint(); }