src/java.desktop/windows/classes/sun/awt/windows/WScrollPanePeer.java

Print this page

        

@@ -76,11 +76,11 @@
         return getInsets();
     }
     private native void setInsets();
 
     @Override
-    public native synchronized void setScrollPosition(int x, int y);
+    public synchronized native void setScrollPosition(int x, int y);
 
     @Override
     public int getHScrollbarHeight() {
         return scrollbarHeight;
     }

@@ -110,11 +110,11 @@
         Dimension vs = sp.getSize();
         setSpans(vs.width, vs.height, width, height);
         setInsets();
     }
 
-    native synchronized void setSpans(int viewWidth, int viewHeight,
+    synchronized native void setSpans(int viewWidth, int viewHeight,
                                       int childWidth, int childHeight);
 
     /**
      * Called by ScrollPane's internal observer of the scrollpane's adjustables.
      * This is called whenever a scroll position is changed in one