static bool robotDragMouse(final Point a, int delay, final Point b) ctex { mouseMover().enable(); if (mouseMover().blocked()) false; final new Robot robot; robot.mouseMove(a.x, a.y); final int button = InputEvent.BUTTON1_DOWN_MASK; robot.mousePress(button); swingLater(delay, r { robot.mouseMove(b.x, b.y); robot.mouseRelease(button); }); true; }