Component.isDisplayable should return true if peer != null.  Window no
longer needs to override this method (and it doesn't, according to the
API), so I removed the method from Window.java.  Patch attached.

2005-09-15  Anthony Balkissoon  <[EMAIL PROTECTED]>

        * java/awt/Component.java:
        (isDisplayable): Return true if peer != null.
        * java/awt/Window.java:
        (isDisplayable): Removed this method. Now inherits from Component.

--Tony
Index: java/awt/Component.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Component.java,v
retrieving revision 1.72
diff -u -r1.72 Component.java
--- java/awt/Component.java	17 Aug 2005 08:54:40 -0000	1.72
+++ java/awt/Component.java	15 Sep 2005 16:45:23 -0000
@@ -735,7 +735,7 @@
   {
     if (parent != null)
       return parent.isDisplayable();
-    return false;
+    return peer != null;
   }
 
   /**
Index: java/awt/Window.java
===================================================================
RCS file: /cvsroot/classpath/classpath/java/awt/Window.java,v
retrieving revision 1.54
diff -u -r1.54 Window.java
--- java/awt/Window.java	9 Sep 2005 20:13:32 -0000	1.54
+++ java/awt/Window.java	15 Sep 2005 16:45:23 -0000
@@ -346,11 +346,6 @@
     super.hide();
   }
 
-  public boolean isDisplayable()
-  {
-    return peer != null;
-  }
-
   /**
    * Destroys any resources associated with this window.  This includes
    * all components in the window and all owned top-level windows.
_______________________________________________
Classpath-patches mailing list
Classpath-patches@gnu.org
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to