< prev index next >

src/java.desktop/share/classes/javax/swing/JViewport.java

Print this page

        

@@ -827,10 +827,11 @@
      * @param w width in pixels
      * @param h height in pixels
      *
      * @see JComponent#reshape(int, int, int, int)
      */
+    @SuppressWarnings("deprecation")
     public void reshape(int x, int y, int w, int h) {
         boolean sizeChanged = (getWidth() != w) || (getHeight() != h);
         if (sizeChanged) {
             backingStoreImage = null;
         }

@@ -1445,10 +1446,11 @@
 
     /**
      * Returns true if the component needs to be completely repainted after
      * a blit and a paint is received.
      */
+    @SuppressWarnings("deprecation")
     private boolean needsRepaintAfterBlit() {
         // Find the first heavy weight ancestor. isObscured and
         // canDetermineObscurity are only appropriate for heavy weights.
         Component heavyParent = getParent();
 
< prev index next >