dcsimg
Swing Apps Color
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, March 29, 2001 11:08 AM

How can I change the default Blue color of the MetalLookAndFeel? Is there anyway of doing that?

Thanks

Re: Swing Apps Color

Posted By:   Sandip_Chitale  
Posted On:   Thursday, March 29, 2001 10:20 PM

Subclass javax.swing.plaf.metal.DefaultMetalTheme
return the desired colors from getters.

if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) {
((MetalLookAndFeel)UIManager.getLookAndFeel()).setCurrentTheme(ExtendedDefaultMetalTheme);

}
About | Sitemap | Contact