All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.incors.plaf.kunststoff.KunststoffTheme Maven / Gradle / Ivy

Go to download

The Kunststoff Look and Feel is an extension to the the Java ™ Metal Look and Feel. This makes it very compact in size (approx. 43 kBytes) and ensures that all the great features provided by the Metal Look and Feel do not get lost. It is our little contribution for making the Java ™ platform even better and we hope that it will help you make some wonderful GUIs.

The newest version!
package com.incors.plaf.kunststoff;

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


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; }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy