简体   繁体   English

更改为JGoodies外观

[英]change to JGoodies look and feel

I am trying to change the look and feel to JGoodies Windows. 我正在尝试将外观更改为JGoodies Windows。

I added the libraries ( jgoodies-common-1.8.1.jar / jgoodies-looks-2.7.0.jar ) and I am able to run the application. 我添加了库( jgoodies-common-1.8.1.jar / jgoodies-looks-2.7.0.jar ),并且能够运行该应用程序。 I tried a lot of look and feels and the most look similar. 我尝试了很多外观,并且大多数看起来相似。 But none looks like the one from the demo software ( http://www.jgoodies.com/downloads/demos ). 但是没有一个看起来像演示软件( http://www.jgoodies.com/downloads/demos )中的那个。 I also tried different ways to set it. 我还尝试了其他方法进行设置。 When I try to change the theme, there is also no effect but I do not need it. 当我尝试更改主题时,也没有任何效果,但是我不需要它。

UIManager.setLookAndFeel(newcom.jgoodies.looks.windows.WindowsLookAndFeel());  
// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

I get the L&F from the system, so the two lines above have the same effect. 我从系统获得了L&F,所以上面的两行效果相同。

This is my L&F 这是我的L&F
这是我的L&F

Demo Version, select L&F 演示版,选择L&F
演示版,选择L&F

L&F Demo Version L&F演示版
L&F演示版

I solved the issue by setting the L&F before creating the components. 创建组件之前通过设置L&F解决了该问题。 Actually I thought the L&F could be changed anytime... 实际上,我认为L&F可以随时更改。

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

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