JToolbar Glossy Appearance under VISTA

Hello all,

I have a question concerning the LAF of my Swing GUI under Windows VISTA.

Toolbars of various programs running on Vista seem to have a glossy LAF to them. Rather than overriding component painting for a my toolbars, I was hoping there was some sort ofClient Property I could set on the toolbar to let Swing know to paint my toolbar with a glossy appearance (iirc I've done this before with JGoodies to apply a gradient to my toolbar instances).

Does anyone know if I can set a toolbarClient Property hint to make my toolbars appear to be glossy or shall I override paintComponent()?

Message was edited by:

fwank

[684 byte] By [fwanka] at [2007-11-27 8:54:04]
# 1
If you are using the Windows (system) L&F, then it will already do that... if the L&F supports it. But other than Java 6, I doubt any earlier version would support it.
bsampieria at 2007-7-12 21:12:46 > top of Java-index,Desktop,Core GUI APIs...
# 2

> If you are using the Windows (system) L&F, then it

> will already do that... if the L&F supports it. But

> other than Java 6, I doubt any earlier version would

> support it.

I am using the system LAF (in my case, Vista):

try

{

UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

}

catch (Exception e)

{

}

I am also using Java 1.6 update 1.

The toolbar is rendered without a gradient or border. Anyone have any suggestions?

Message was edited by:

fwank

fwanka at 2007-7-12 21:12:46 > top of Java-index,Desktop,Core GUI APIs...
# 3
Then it's a bug in implementation of WindowsLookAndFeel in JDK 6.0 under Vista.
kirillga at 2007-7-12 21:12:46 > top of Java-index,Desktop,Core GUI APIs...
# 4
Maybe a better question is: "Is Swing supposed to be rendering toolbars with a glossy look under VISTA?"Do swing devs ever look at these forums? :)-F
fwanka at 2007-7-12 21:12:46 > top of Java-index,Desktop,Core GUI APIs...
# 5
That would be http://forums.java.net/jive/forum.jspa?forumID=74
kirillga at 2007-7-12 21:12:46 > top of Java-index,Desktop,Core GUI APIs...