home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / J A V A / Java Development Kit V1.2 / jdk12-win32(1).exe / data1.cab / demos / demo / jfc / Metalworks / KhakiMetalTheme.java < prev    next >
Encoding:
Java Source  |  1998-12-01  |  1.7 KB  |  49 lines

  1. /*
  2.  * @(#)KhakiMetalTheme.java    1.3 98/08/26
  3.  *
  4.  * Copyright 1998 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15.  
  16. import javax.swing.plaf.*;
  17. import javax.swing.plaf.metal.*;
  18. import javax.swing.*;
  19. import javax.swing.border.*;
  20. import java.awt.*;
  21.  
  22. /**
  23.  * This class describes a theme using "khaki" colors.
  24.  *
  25.  * @version 1.3 08/26/98
  26.  * @author Steve Wilson
  27.  */
  28. public class KhakiMetalTheme extends DefaultMetalTheme {
  29.  
  30.     public String getName() { return "Sandstone"; }
  31.  
  32.     private final ColorUIResource primary1 = new ColorUIResource( 87,  87,  47);
  33.     private final ColorUIResource primary2 = new ColorUIResource(159, 151, 111);
  34.     private final ColorUIResource primary3 = new ColorUIResource(199, 183, 143);
  35.  
  36.     private final ColorUIResource secondary1 = new ColorUIResource( 111,  111,  111);
  37.     private final ColorUIResource secondary2 = new ColorUIResource(159, 159, 159);
  38.     private final ColorUIResource secondary3 = new ColorUIResource(231, 215, 183);
  39.  
  40.     protected ColorUIResource getPrimary1() { return primary1; }
  41.     protected ColorUIResource getPrimary2() { return primary2; }
  42.     protected ColorUIResource getPrimary3() { return primary3; }
  43.  
  44.     protected ColorUIResource getSecondary1() { return secondary1; }
  45.     protected ColorUIResource getSecondary2() { return secondary2; }
  46.     protected ColorUIResource getSecondary3() { return secondary3; }
  47.  
  48. }
  49.