Java swing Table transparency

前端 未结 3 806
醉酒成梦
醉酒成梦 2020-12-19 14:23

I want to change the transparency of the JTable to see what behind cells like a photo is it possible?

3条回答
  •  感动是毒
    2020-12-19 14:39

    You can set background color to have some alpha component:

    Color backgound = new Color(0, 0, 0, 255) //total transparency
    

    For more help on what you are trying to accomplish, post a SSCCE.

提交回复
热议问题