Hi,

This simple patch deprecates Window.show() and Window.hide()
methods as specified in the Java 1.5 javadocs. Also, I added
some small documentation to the hide() method.

Tom

Changelog:

2006-07-16  Thomas Minor  [EMAIL PROTECTED]

        * java.awt.Window: Deprecated show() and hide()



Index: Window.java
===================================================================
RCS file: /sources/classpath/classpath/java/awt/Window.java,v
retrieving revision 1.73
diff -u -r1.73 Window.java
--- Window.java 15 Jul 2006 08:02:23 -0000      1.73
+++ Window.java 17 Jul 2006 00:31:38 -0000
@@ -314,6 +314,8 @@
  /**
   * Shows on-screen this window and any of its owned windows for whom
   * isVisible returns true.
+   *
+   * @deprecated use [EMAIL PROTECTED] #Component.setVisible(boolean)} instead
   */
  public void show()
  {
@@ -367,6 +369,12 @@
      }
  }

+  /**
+   * Hides this window and any of its visible owned windows.
+   *
+   * @deprecated use [EMAIL PROTECTED] #Component.setVisible(boolean)} instead
+   */
+
  public void hide()
  {
    // Hide visible owned windows.




Reply via email to