开发者

True Transparency in Swing

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜