Translucent Swing Components issues with background

时间:2016-04-21 21:49:47

标签: java swing

I have an undecorated and translucent Window in Swing, the jLabels on it are translucent as well. As i set the background with .setBackground() and using a the constructor of Color like new Color(int a, int b, int c, int d) it works. The problem is, that when i repaint the jLabel after a mouse entered event or similar and i change the background i seems like it would add a sort of new layer of translucent paint. It looks like it would increase the alpha although the color is defined in a separate class with constants.

0 个答案:

没有答案