简体   繁体   English

托盘的Java外观不起作用

[英]Java look and feel for tray does not work

I use UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); 我使用UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); to set a LAF and it works fine. 设置一个LAF,它工作正常。 But this time I also implemented a tray and it looks ugly - like Motif. 但是这次我还实现了一个托盘,它看起来很难看 - 就像Motif一样。 How can I set LAF for the tray? 如何为托盘设置LAF?

The class you're probably using for this is java.awt.SystemTray. 您可能正在使用的类是java.awt.SystemTray。

The tray uses AWT, not Swing. 托盘使用AWT,而不是Swing。 You cant set the look and feel of it. 你不能设置它的外观和感觉。

I think there is a duplicate of this somewhere on here. 我认为这里有一个重复的地方。

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

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