怎么这么冷清,都忙着放假吗?

解决方案 »

  1.   

    沉了?不知道就说声不知道也行,没有人看见帖子是怎么的?
      

  2.   

    这个类javax.swing.JComponent下面的一个方法setOpaque,在api中的解释如下:
    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. 
    The default value of this property is false for JComponent. However, the default value for this property on most standard JComponent subclasses (such as JButton and JTree) is look-and-feel dependent. 
    Parameters:
    isOpaque - true if this component should be opaque这个是设置透明效果的方法,运用的话要自己灵活运用,你可以先去试试
      

  3.   

    必须操作背景颜色,模糊度会是容器中的所有东西都半透明。
      

  4.   

    哦,没看你导入的包,这个包我没用过,你可以查一下和这个类有关的文档