home *** CD-ROM | disk | FTP | other *** search
/ Australian PC Authority 1999 May / may1999.iso / May / JBUILDER / JSAMPLES.Z / GreenMetalTheme.class (.txt) < prev    next >
Encoding:
Java Class File  |  1998-04-30  |  851 b   |  25 lines

  1. import com.sun.java.swing.plaf.ColorUIResource;
  2. import com.sun.java.swing.plaf.metal.DefaultMetalTheme;
  3.  
  4. public class GreenMetalTheme extends DefaultMetalTheme {
  5.    private final ColorUIResource primary1 = new ColorUIResource(51, 102, 51);
  6.    private final ColorUIResource primary2 = new ColorUIResource(102, 153, 102);
  7.    private final ColorUIResource primary3 = new ColorUIResource(153, 204, 153);
  8.  
  9.    public String getName() {
  10.       return "Emerald";
  11.    }
  12.  
  13.    protected ColorUIResource getPrimary1() {
  14.       return this.primary1;
  15.    }
  16.  
  17.    protected ColorUIResource getPrimary2() {
  18.       return this.primary2;
  19.    }
  20.  
  21.    protected ColorUIResource getPrimary3() {
  22.       return this.primary3;
  23.    }
  24. }
  25.