/[classpath]/classpath/java/awt/Component.java
ViewVC logotype

Diff of /classpath/java/awt/Component.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.73 by abalkiss, Thu Sep 15 16:49:02 2005 UTC revision 1.74 by abalkiss, Thu Sep 15 21:59:02 2005 UTC
# Line 720  public abstract class Component Line 720  public abstract class Component
720    
721    /**    /**
722     * Tests if the component is displayable. It must be connected to a native     * Tests if the component is displayable. It must be connected to a native
723     * screen resource, and all its ancestors must be displayable. A containment     * screen resource.  This reduces to checking that peer is not null.  A
724     * hierarchy is made displayable when a window is packed or made visible.     * containment  hierarchy is made displayable when a window is packed or
725       * made visible.
726     *     *
727     * @return true if the component is displayable     * @return true if the component is displayable
728     * @see Container#add(Component)     * @see Container#add(Component)
# Line 733  public abstract class Component Line 734  public abstract class Component
734     */     */
735    public boolean isDisplayable()    public boolean isDisplayable()
736    {    {
     if (parent != null)  
       return parent.isDisplayable();  
737      return peer != null;      return peer != null;
738    }    }
739    

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26