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.
# 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 >
