开发者

True Transparency in Swing

开发者 https://www.devze.com 2023-01-01 09:33 出处:网络
Is this possible 开发者_如何转开发to make aero frame in java swing application?There is also How to Create Translucent and Shaped Windows.As for Java 6 or older, using classes from

Is this possible 开发者_如何转开发to make aero frame in java swing application?


There is also How to Create Translucent and Shaped Windows.


As for Java 6 or older, using classes from import static java.awt.GraphicsDevice.WindowTranslucency.*;

Java 7 has added these two new methods for Swing.

JFrame.setUndecorated(boolean);//wont work if the frame is decorated
JFrame.setShape(someShape);//set frame shape
JFrame.setOpacity(somefloat);//set frame tranparency
0

精彩评论

暂无评论...
验证码 换一张
取 消