简体   繁体   English

Synthetica swing theam无法正常加载

[英]Synthetica swing theam doesn't load properly

I am using Synthetica swing themes for an application, there is an option for the user which can be used to change the theme, though the theme applied I have to minimize or maximize the window to apply the theme properly. 我正在为一个应用程序使用Synthetica swing主题,有一个用户可以用来更改主题的选项,虽然应用的主题我必须最小化或最大化窗口才能正确应用主题。 Could anyone tell me why is that. 谁能告诉我为什么会这样。

如果你想在运行时更改Swing Look and Feel ,那么你必须调用

SwingUtilities#updateComponentTreeUI(JFrame / JDialog / JWindow)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM