I use UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); to set a LAF and it works fine. But this time I also implemented a tray and it looks ugly - like Motif. How can I set LAF for the tray?
Asked
Active
Viewed 702 times
0
user219882
- 14,484
- 22
- 89
- 136
1 Answers
2
The class you're probably using for this is java.awt.SystemTray.
The tray uses AWT, not Swing. You cant set the look and feel of it.
I think there is a duplicate of this somewhere on here.
user489041
- 27,066
- 55
- 130
- 201
-
These helped me: http://stackoverflow.com/questions/6600638/java-look-and-feel-for-tray-messages-on-ubuntu and http://stackoverflow.com/questions/3954616/look-and-feel-in-java – user219882 Jul 30 '11 at 08:26