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

Print this page

        

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