// We need in this constructor to pass frame position between JVMs public FileListBetweenJVMsTest( Point targetFrameLocation, Point dragSourcePoint, int transferredFilesNumber) throws InterruptedException { TargetFileListFrame targetFrame = new TargetFileListFrame(targetFrameLocation, transferredFilesNumber); Util.waitForIdle(null); final Robot robot = Util.createRobot(); robot.mouseMove((int) dragSourcePoint.getX(), (int) dragSourcePoint.getY()); sleep(100); robot.mousePress(InputEvent.BUTTON1_MASK); sleep(100); robot.mouseRelease(InputEvent.BUTTON1_MASK); sleep(100); Util.drag(robot, dragSourcePoint, targetFrame.getDropTargetPoint(), InputEvent.BUTTON1_MASK); }