user219882
user219882

Reputation: 15844

Java look and feel for tray does not work

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?

Upvotes: 0

Views: 771

Answers (1)

user489041
user489041

Reputation: 28304

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.

Upvotes: 2

Related Questions