Posted By:
Sandip_Chitale
Posted On:
Thursday, March 29, 2001 10:11 AM
if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) {
MetalTheme mt = (()UIManager.getLookAndFeel()).getCurrentTheme();
// The following is true for DefaultMetalTheme
// primary 1
mt.getPrimaryControlDarkShadow();
// primary 2
mt.getControlShadow();
// primary 3
mt.getPrimaryControl();
// secondary 1
mt.getControlDarkShadow();
// secondary 2
mt.getPrimaryControlShadow();
// secondary 3
mt.getControl();
}
You should study the SwingSet example also...
Looking at the JDK sources might also help.