public static Color hexToColor(String hexString){
  int decimalColor;
  decimalColor=Integer.parseInt(hexString,16);
  return new Color(decimalColor);
}

public static Color hexToColor ( String hexString ) { int decimalColor ; decimalColor = Integer . parseInt ( hexString , 16 ) ; return new Color ( decimalColor ) ; }
convert a hex string to a color object
