code: public static void setColor(String strProperty, ColorUIResource color, PropertyOwner propertyOwner, Map<String,Object> properties)
      {
          if (color != null)
              ScreenUtil.setProperty(strProperty, "#" + Integer.toHexString(color.getRGB() & 0xFFFFFF), propertyOwner, properties);
          else
              ScreenUtil.setProperty(strProperty, null, propertyOwner, properties);
      }
docs: Set this property to this color.
  (Utility method).
  @param strProperty The key to save this color as.
  @param color The registered color for this property key.