public void setOpaque(boolean isOpaque)
If true the component paints every pixel within its bounds. Otherwise, the component may not paint some or all of its pixels, allowing the underlying pixels to show through. 就是如果为true,组件会在他所在的边界内画出每个象素,否则组件不会画出一些或全部的象素,其允许下面的象素(背景色吧)会透视,例如JList底下的白色。
If true the component paints every pixel within its bounds. Otherwise, the component may not paint some or all of its pixels, allowing the underlying pixels to show through. 就是如果为true,组件会在他所在的边界内画出每个象素,否则组件不会画出一些或全部的象素,其允许下面的象素(背景色吧)会透视,例如JList底下的白色。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货