Using transparent window in both Java 6 and Java 7

后端 未结 1 1764
暖寄归人
暖寄归人 2020-12-19 08:47

I\'m developing application in Java 6 (1.6.0_24) which using transparent JFrame to get disappearing animation. Here is my code:

pub         


        
相关标签:
1条回答
  • 2020-12-19 09:23

    See How to Create Translucent and Shaped Windows.. It mentions a "per pixel" translucency that you can leverage to make a window with java 7 that has the look and feel of the translucent window from java 6 which is no longer available. So basically you'd have to code to accommodate either, or you could go with a "uniform translucency" which works with both.

    Gradient Translucent Window

    0 讨论(0)
提交回复
热议问题