< prev index next >

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

Print this page

        

@@ -1492,10 +1492,11 @@
      * @param y  an integer giving the component's new vertical position,
      *           measured in pixels from the bottom of its container
      * @param width  an integer giving the component's new width in pixels
      * @param height an integer giving the component's new height in pixels
      */
+    @SuppressWarnings("deprecation")
     public void reshape(int x, int y, int width, int height) {
         super.reshape(x, y, width, height);
         validate();
         repaint();
     }

@@ -1733,10 +1734,11 @@
      * @see #moveToFront
      * @see #setSelected
      * @see InternalFrameEvent#INTERNAL_FRAME_OPENED
      * @see #setVisible
      */
+    @SuppressWarnings("deprecation")
     public void show() {
         // bug 4312922
         if (isVisible()) {
             //match the behavior of setVisible(true): do nothing
             return;

@@ -1764,10 +1766,11 @@
                 setSelected(true);
             } catch (PropertyVetoException pve) {}
         }
     }
 
+    @SuppressWarnings("deprecation")
     public void hide() {
         if (isIcon()) {
             getDesktopIcon().setVisible(false);
         }
         super.hide();
< prev index next >