FileDocCategorySizeDatePackage
ContrastMetalTheme.javaAPI DocSun JDK 1.4.2 Example4705Thu May 12 00:35:27 BST 2005None

ContrastMetalTheme

public class ContrastMetalTheme extends DefaultMetalTheme
This class describes a higher-contrast Metal Theme.
version
1.16 01/23/03
author
Michael C. Albers

Fields Summary
private final ColorUIResource
primary1
private final ColorUIResource
primary2
private final ColorUIResource
primary3
private final ColorUIResource
primaryHighlight
private final ColorUIResource
secondary2
private final ColorUIResource
secondary3
private final ColorUIResource
controlHighlight
Constructors Summary
Methods Summary
public voidaddCustomEntriesToTable(javax.swing.UIDefaults table)


        Border blackLineBorder = new BorderUIResource(new LineBorder( getBlack() ));
        Border whiteLineBorder = new BorderUIResource(new LineBorder( getWhite() ));

	Object textBorder = new BorderUIResource( new CompoundBorder(
						       blackLineBorder,
					               new BasicBorders.MarginBorder()));

        table.put( "ToolTip.border", blackLineBorder);
	table.put( "TitledBorder.border", blackLineBorder);
        table.put( "Table.focusCellHighlightBorder", whiteLineBorder);
        table.put( "Table.focusCellForeground", getWhite());

        table.put( "TextField.border", textBorder);
        table.put( "PasswordField.border", textBorder);
        table.put( "TextArea.border", textBorder);
        table.put( "TextPane.font", textBorder);


    
public javax.swing.plaf.ColorUIResourcegetAcceleratorForeground()

 return getBlack(); 
public javax.swing.plaf.ColorUIResourcegetAcceleratorSelectedForeground()

 return getWhite(); 
public javax.swing.plaf.ColorUIResourcegetControlHighlight()

 return super.getSecondary3(); 
public javax.swing.plaf.ColorUIResourcegetFocusColor()

 return getBlack(); 
public javax.swing.plaf.ColorUIResourcegetHighlightedTextColor()

 return getWhite(); 
public javax.swing.plaf.ColorUIResourcegetMenuSelectedBackground()

 return getBlack(); 
public javax.swing.plaf.ColorUIResourcegetMenuSelectedForeground()

 return getWhite(); 
public java.lang.StringgetName()

 return "Contrast"; 
protected javax.swing.plaf.ColorUIResourcegetPrimary1()


        return primary1; 
protected javax.swing.plaf.ColorUIResourcegetPrimary2()

 return primary2; 
protected javax.swing.plaf.ColorUIResourcegetPrimary3()

 return primary3; 
public javax.swing.plaf.ColorUIResourcegetPrimaryControlHighlight()

 return primaryHighlight;
protected javax.swing.plaf.ColorUIResourcegetSecondary2()

 return secondary2; 
protected javax.swing.plaf.ColorUIResourcegetSecondary3()

 return secondary3; 
public javax.swing.plaf.ColorUIResourcegetTextHighlightColor()

 return getBlack();