EditorMouseFixture (Component component, int clickCount, Point p) { component.dispatchEvent(new MouseEvent(myLastComponent = component, myLastId = MouseEvent.MOUSE_PRESSED, System.currentTimeMillis(), myModifiers | getModifiersForButtonPress(myButton), myX = p.x, myY = p.y, myLastClickCount = clickCount, false, // Windows behaviour myButton)); return this; }