Color.getColor(String nm, int v) has the following syntax.
public static Color getColor(String nm, int v)
In the following code shows how to use Color.getColor(String nm, int v) method.
//from w w w. ja v a 2 s . c o m import java.awt.Color; public class Main { public static void main(String[] args) { System.setProperty("myColor", "0XFFFFFF"); Color myColor = Color.getColor("myColorNew",0XFF00FF); System.out.println(myColor); } }
The code above generates the following result.