Example usage for java.awt Color getColor

List of usage examples for java.awt Color getColor

Introduction

In this page you can find the example usage for java.awt Color getColor.

Prototype

public static Color getColor(String nm, int v) 

Source Link

Document

Finds a color in the system properties.

Usage

From source file:Main.java

public static void main(String[] args) {
    System.setProperty("myColor", "0XFFFFFF");
    Color myColor = Color.getColor("myColorNew", 0XFF00FF);

    System.out.println(myColor);/*from w ww .  j a  v a  2  s. com*/

}

From source file:Main.java

public static void main(String[] args) {
    System.setProperty("myColor", "0XFFFFFF");
    Color myColor = Color.getColor("myColorNew", Color.RED);

    System.out.println(myColor);/*from w w w  . j  a v a2  s .co  m*/

}