gpt4 book ai didi

java - Substance UI 和未修饰的 JDialog/JFrame

转载 作者:行者123 更新时间:2023-11-30 05:10:16 27 4
gpt4 key购买 nike

我注意到,在使用 Java 的 Substance UI 时,当我将新的 JFrame 或 JDialog 设置为未装饰时,它不会被接受。

例如

frame.setUndecorated(true);
frame.setVisible(true);

在 Substance 下运行时会显示一个装饰框架。

在系统默认情况下运行时,L&F 显示未修饰的框架。

有人有解决这个问题的想法吗?我在 Substance 网站/java.net 论坛上找不到任何相关内容,或者已经存在于 SO 中。

最佳答案

感谢The Alchemist解决我的问题:

Have you tried setting JFrame.setDefaultLookAndFeelDecorated() before bringing up your the first window? – The Alchemist Sep 7 at 12:18

关于java - Substance UI 和未修饰的 JDialog/JFrame,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3657538/

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