jdk/src/share/classes/java/awt/ScrollPane.java

Print this page

        

@@ -734,14 +734,14 @@
             }
 
             Component c = scroller.getComponent(0);
             switch(adj.getOrientation()) {
             case Adjustable.VERTICAL:
-                c.move(c.getLocation().x, -(value));
+                c.setLocation(c.getLocation().x, -(value));
                 break;
             case Adjustable.HORIZONTAL:
-                c.move(-(value), c.getLocation().y);
+                c.setLocation(-(value), c.getLocation().y);
                 break;
             default:
                 throw new IllegalArgumentException("Illegal adjustable orientation");
             }
         }