FileDocCategorySizeDatePackage
InverseTheme.javaAPI DocExample1694Mon Jan 09 11:02:00 GMT 2006None

InverseTheme.java

import javax.swing.plaf.metal.*;
import javax.swing.plaf.ColorUIResource;

public class InverseTheme extends DefaultMetalTheme {

    protected ColorUIResource getPrimary1() { 
        return new ColorUIResource(255,255,255);
    }
    protected ColorUIResource getPrimary2() { 
        return new ColorUIResource(0,0,0);
    }
    protected ColorUIResource getPrimary3() { 
        return new ColorUIResource(255,255,255);
    }
    
    // component borders
    protected ColorUIResource getSecondary1() { 
        return new ColorUIResource(0,0,0);
    }
    // selected components (button down state)
    protected ColorUIResource getSecondary2() { 
        return new ColorUIResource(0,0,0);
    }
    // component backgrounds
    protected ColorUIResource getSecondary3() { 
        return new ColorUIResource(255,255,255);
    }

    

    //for label text
    public ColorUIResource getSystemTextColor() {
        return new ColorUIResource(0,0,0);
    }
    
    // background of selected text
    public ColorUIResource getTextHighlightColor() {
        return new ColorUIResource(0,0,0);
    }
    
    // foreground of selected text
    public ColorUIResource getHighlightedTextColor() {
        return new ColorUIResource(255,255,255);
    }
    

    
    public ColorUIResource getMenuBackground() {
        return new ColorUIResource(255,255,255);
    }
    public ColorUIResource getMenuForeground() {
        return new ColorUIResource(0,0,0);
    }
    
    public ColorUIResource getMenuSelectedBackground() {
        return new ColorUIResource(0,0,0);
    }
    public ColorUIResource getMenuSelectedForeground() {
        return new ColorUIResource(255,255,255);
    }

}