开发者

Creating a Java Swing JFrame with a circular shape?

How to make a cir开发者_如何学Gocular JFrame if possible?


Oracle has a nice tutorial on exactly this topic: https://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html

Shaped Windows

The other feature introduced in release 6u10 is the window shaping effect. Using shaping you can set any shape to an undecorated window. When the effect is applied, the desired area of a window becomes transparent. Thus, the combination of transparent and non-transparent pixels form the shape of a given window. The next images demonstrate window shaping in two cases:

[Text extracted from original article http://www.oracle.com/technetwork/articles/javase/translucent-shaped-windows-139324.html ]

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜