/**
* Gets the background color of this component.
* @return this component's background color; if this component does
* not have a background color,
* the background color of its parent is returned
* @see #setBackground
* @since JDK1.0
*/
@Transient
public Color getBackground() {
Color background = this.background;
if (background != null) {
return background;
}
Container parent = this.parent;
return (parent != null) ? parent.getBackground() : null;
}
Component.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:jdk8u-jdk
作者:
评论列表
文章目录