jdk/test/javax/swing/JScrollBar/6542335/bug6542335.java
changeset 8377 7f7a8d6235e0
parent 7786 1db9d857af81
child 9035 1255eb81cc2f
--- a/jdk/test/javax/swing/JScrollBar/6542335/bug6542335.java	Wed Feb 16 18:32:06 2011 +0300
+++ b/jdk/test/javax/swing/JScrollBar/6542335/bug6542335.java	Fri Feb 18 00:16:53 2011 +0300
@@ -69,8 +69,6 @@
 
                 frame.setSize(200, 100);
                 frame.setVisible(true);
-
-                thumbBounds[0] = new Rectangle(ui.getThumbBounds());
             }
         });
 
@@ -78,6 +76,8 @@
 
         SwingUtilities.invokeAndWait(new Runnable() {
             public void run() {
+                thumbBounds[0] = new Rectangle(ui.getThumbBounds());
+
                 Point l = sb.getLocationOnScreen();
 
                 robot.mouseMove(l.x + (int) (0.75 * sb.getWidth()), l.y + sb.getHeight() / 2);