Color.getColor(String nm, Color v) has the following syntax.
public static Color getColor(String nm, Color v)
In the following code shows how to use Color.getColor(String nm, Color v) method.
//from w w w .j av a2 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",Color.RED); System.out.println(myColor); } }
The code above generates the following result.