public static Paint parseColorFromProperties(Properties p,String propName,Paint dfault){
  try {
    String colorString=p.getProperty(propName);
    if (colorString != null) {
      return parseColor(colorString,true);
    }
  }
 catch (  NumberFormatException nfe) {
  }
  return dfault;
}

public static Paint parseColorFromProperties ( Properties p , String propName , Paint dfault ) { try { String colorString = p . getProperty ( propName ) ; if ( colorString != null ) { return parseColor ( colorString , true ) ; } } catch ( NumberFormatException nfe ) { } return dfault ; }
take a string from a properties file , representing the 24bit rgb or 32bit argb hex values for a color , and convert it to a java . awt . color .
