FileDocCategorySizeDatePackage
DemoMetalTheme.javaAPI DocExample3568Tue Jun 29 07:21:02 BST 1999None

DemoMetalTheme

public class DemoMetalTheme extends DefaultMetalTheme
This class describes a theme using large fonts. It's great for giving demos of your software to a group where people will have trouble seeing what you're doing.
version
1.5 04/23/99
author
Steve Wilson

Fields Summary
private final FontUIResource
controlFont
private final FontUIResource
systemFont
private final FontUIResource
userFont
private final FontUIResource
smallFont
Constructors Summary
Methods Summary
public voidaddCustomEntriesToTable(javax.swing.UIDefaults table)

         super.addCustomEntriesToTable(table);

         final int internalFrameIconSize = 22;
         table.put("InternalFrame.closeIcon", MetalIconFactory.getInternalFrameCloseIcon(internalFrameIconSize));
         table.put("InternalFrame.maximizeIcon", MetalIconFactory.getInternalFrameMaximizeIcon(internalFrameIconSize));
         table.put("InternalFrame.iconizeIcon", MetalIconFactory.getInternalFrameMinimizeIcon(internalFrameIconSize));
         table.put("InternalFrame.minimizeIcon", MetalIconFactory.getInternalFrameAltMaximizeIcon(internalFrameIconSize));



         table.put( "ScrollBar.width", new Integer(21) );



    
public javax.swing.plaf.FontUIResourcegetControlTextFont()


        return controlFont;
public javax.swing.plaf.FontUIResourcegetMenuTextFont()

 return controlFont;
public java.lang.StringgetName()

 return "Presentation"; 
public javax.swing.plaf.FontUIResourcegetSubTextFont()

 return smallFont;
public javax.swing.plaf.FontUIResourcegetSystemTextFont()

 return systemFont;
public javax.swing.plaf.FontUIResourcegetUserTextFont()

 return userFont;
public javax.swing.plaf.FontUIResourcegetWindowTitleFont()

 return controlFont;