我注意到,在使用 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/