EditorMouseFixture (JComponent component, int x, int y) { component.dispatchEvent(new MouseEvent(component, myLastId = MouseEvent.MOUSE_DRAGGED, System.currentTimeMillis(), myModifiers | getModifiersForButtonPress(myButton), myX = x, myY = y, myLastClickCount = 1, false, 0)); return this; }