test/jdk/javax/swing/JWindow/ShapedAndTranslucentWindows/Common.java
changeset 55367 f85fa2fc78c2
parent 55361 ed5c7d68ed5a
child 58679 9c3209ff7550
equal deleted inserted replaced
55366:de1d2a535c08 55367:f85fa2fc78c2
   365         checkTranslucentShape();
   365         checkTranslucentShape();
   366 
   366 
   367         // Drag
   367         // Drag
   368         Point location = window.getLocationOnScreen();
   368         Point location = window.getLocationOnScreen();
   369         robot.dragAndDrop(location.x + 30, location.y + 5, location.x + dl + random.nextInt(dl), location.y + random.nextInt(dl));
   369         robot.dragAndDrop(location.x + 30, location.y + 5, location.x + dl + random.nextInt(dl), location.y + random.nextInt(dl));
   370         robot.waitForIdle(delay);
   370         robot.waitForIdle(2*delay);
   371         checkTranslucentShape();
   371         checkTranslucentShape();
   372 
   372 
   373         // Resize
   373         // Resize
   374         location = window.getLocationOnScreen();
   374         location = window.getLocationOnScreen();
   375         robot.dragAndDrop(location.x + 4, location.y + 4, location.x + random.nextInt(2*dl)-dl, location.y + random.nextInt(2*dl)-dl);
   375         robot.dragAndDrop(location.x + 4, location.y + 4, location.x + random.nextInt(2*dl)-dl, location.y + random.nextInt(2*dl)-dl);
   376         robot.waitForIdle(delay);
   376         robot.waitForIdle(2*delay);
   377         checkTranslucentShape();
   377         checkTranslucentShape();
   378 
   378 
   379         EventQueue.invokeAndWait(this::dispose);
   379         EventQueue.invokeAndWait(this::dispose);
   380     }
   380     }
   381 
   381