/* MyLookAndFeel.java * * Show names and values of available properties. */ //package my; import javax.swing.UIDefaults; import javax.swing.plaf.metal.MetalLookAndFeel; public class MyLookAndFeel extends MetalLookAndFeel { public String getID() { return "My"; } public String getName() { return "My Look and Feel"; } public String getDescription() { return "The My Look and Feel"; } public boolean isNativeLookAndFeel() { return false; } public boolean isSupportedLookAndFeel() { return true; } protected void initClassDefaults( UIDefaults table ) { super.initClassDefaults( table ); table.put( "ButtonUI", "my.MyButtonUI" ); } }