我没有做过swing
可以找一个背景透明的图片吗?

解决方案 »

  1.   

    不行,因为frame 将他默认的颜色来填从周边的空闲空间,大哥些,帮查一下
    Thank you
      

  2.   

    Color类里面的
    getTransparency
    public int getTransparency()Returns the transparency mode for this Color. This is required to implement the Paint interface. Specified by:
    getTransparency in interface Transparency
    Returns:
    this Color object's transparency mode.
    ------------
    这个是刚才查的还不会用还有一种方法就是static Color getHSBColor(float h, float s, float b) 
     至于三个参数怎么设置的我不记得了,以前看到过