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 / AquaMetalTheme.java < prev    next >
Encoding:
Java Source  |  1998-12-01  |  1.2 KB  |  41 lines

  1. /*
  2.  * @(#)AquaMetalTheme.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 "blue-green" colors.
  24.  *
  25.  * @version 1.3 08/26/98
  26.  * @author Steve Wilson
  27.  */
  28. public class AquaMetalTheme extends DefaultMetalTheme {
  29.  
  30.     public String getName() { return "Oxide"; }
  31.  
  32.     private final ColorUIResource primary1 = new ColorUIResource(102, 153, 153);
  33.     private final ColorUIResource primary2 = new ColorUIResource(128, 192, 192);
  34.     private final ColorUIResource primary3 = new ColorUIResource(159, 235, 235);
  35.  
  36.     protected ColorUIResource getPrimary1() { return primary1; }
  37.     protected ColorUIResource getPrimary2() { return primary2; }
  38.     protected ColorUIResource getPrimary3() { return primary3; }
  39.  
  40. }
  41.