/* 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 boolean repostEvent(MouseEvent e) { // Check for isEditing() in case another event has // caused the editor to be removed. See bug #4306499. if (dispatchComponent == null || !isEditing()) { return false; } MouseEvent e2 = SwingUtilities.convertMouseEvent(JListMutable.this, e, dispatchComponent); dispatchComponent.dispatchEvent(e2); return true; }