alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

package com.incors.plaf.kunststoff;

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

import com.incors.plaf.*;


public class KunststoffTheme extends DefaultMetalTheme {

  // primary colors
  private final ColorUIResource primary1 = new ColorUIResource(32, 32, 32);

  private final ColorUIResource primary2 = new ColorUIResource(160, 160, 180);

  private final ColorUIResource primary3 = new ColorUIResource(200, 200, 224);


  // secondary colors
  private final ColorUIResource secondary1 = new ColorUIResource(130, 130, 130);

  private final ColorUIResource secondary2 = new ColorUIResource(180, 180, 180);

  private final ColorUIResource secondary3 = new ColorUIResource(224, 224, 224);


  // methods

  public String getName() { return "Default Kunststoff Theme"; }


  protected ColorUIResource getPrimary1() { return primary1; }

  protected ColorUIResource getPrimary2() { return primary2; }

  protected ColorUIResource getPrimary3() { return primary3; }


  protected ColorUIResource getSecondary1() { return secondary1; }

  protected ColorUIResource getSecondary2() { return secondary2; }

  protected ColorUIResource getSecondary3() { return secondary3; }

}
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.