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 735 times
0

user219882
- 15,274
- 23
- 93
- 138
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,916
- 55
- 135
- 204
-
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