gpt4 book ai didi

java - 创建一个圆形的 Java Swing JFrame?

转载 作者:搜寻专家 更新时间:2023-10-31 19:49:46 26 4
gpt4 key购买 nike

如果可能,如何制作一个圆形的 JFrame?

最佳答案

Oracle 有一个关于这个主题的很好的教程: https://docs.oracle.com/javase/tutorial/uiswing/misc/trans_shaped_windows.html

异形窗

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:

[原文摘自文章http://www.oracle.com/technetwork/articles/javase/translucent-shaped-windows-139324.html ]

关于java - 创建一个圆形的 Java Swing JFrame?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5154880/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com