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) |
734 |
*/ |
*/ |
735 |
public boolean isDisplayable() |
public boolean isDisplayable() |
736 |
{ |
{ |
|
if (parent != null) |
|
|
return parent.isDisplayable(); |
|
737 |
return peer != null; |
return peer != null; |
738 |
} |
} |
739 |
|
|